hugo

Highlight code block in Hugo

Highlight codes in Hugo - It’s changed Old Hugo Around a year ago (2019), we need to configure pygments in order to highlight codes in code block. Here are sample lines in config.toml file. ... pygmentsCodefences = true pygmentsCodefencesGuessSyntax = true pygmentsStyle = "monokai" ... Latest Hugo (2020) At the new version Hugo in 2020, Hugo officially supports code highlight as a default as a default. Official syntax highlighting: https://gohugo.io/content-management/syntax-highlighting/#highlighting-in-code-fences

Setup Hugo Blog

Hugo is a static web site generator. I use Hugo to make this page (see general->impress). Caution I wouldn’t recommend this method if you want to upgrade hugo continuously. Install TL;DR If you are Go-lang user, please go next section. Unless, I highly recommend you, who just want to use Hugo features (not Go), to install as follows (official says “Install Hugo from Tarball”). curl -sSL https://github.com/gohugoio/hugo/releases/download/v0.97.3/hugo_0.97.3_Linux-64bit.tar.gz -o hugo.tar.gz tar xvfz hugo.