Mon. Jan 20th, 2020

hugo v0.62.2 releases: A Fast and Flexible Static Site Generator built with love in GoLang

2 min read

Hugo is a static HTML and CSS website generator written in Go. It is optimized for speed, ease of use, and configurability. Hugo takes a directory with content and templates and renders them into a full HTML website.

Hugo relies on Markdown files with front matter for metadata, and you can run Hugo from any directory. This works well for shared hosts and other systems where you don’t have a privileged account.

Hugo renders a typical website of moderate size in a fraction of a second. A good rule of thumb is that each piece of content renders in around 1 millisecond.

It is designed to work well for any kind of website including blogs, tumbles, and docs.


Changelog v0.62.2

The main driving force behind these patch releases in the new year has been getting a good story with portable links between GitHub and Hugo, using the new render hooks introduced in Hugo 0.62.0. And all was mostly well until a Hugo user asked about anchor links. Which is, when you look into it, a slightly sad Markdown story. They have been talking about anchors in Markdown over at the CommonMark forum for the last six years, but it has come to nothing. The current situation is that some Markdown engines support the {#anchorName} attribute syntax (Hugo’s Goldmark does, GitHub does not) and for those that support auto-generation of IDs, the implementation often varies. And this makes for poor portability.

To improve this, Hugo has now reverse-engineered GitHub’s implementation and made that the default strategy for generation or header IDs. We understand that this isn’t everyone’s cup of tea, so you can configure the behaviour to be one of githubgithub-ascii (some client-libraries have Unicode issues) or blackfriday (which will match how it behaved before Hugo 0.60).