Hugo 0.16 is our best and biggest release ever. The Hugo community has
outdone itself with continued performance improvements,
beautiful themes for all types of sites from project
sites to documentation to blogs to portfolios, and increased stability.
This release represents over 550 contributions by over 110 contributors to
the main Hugo code base. Since last release Hugo has gained 3500 stars, 90
contributors and 23 additional themes.
This release celebrates 3 years since
wrote the first lines
of Hugo. During those 3 years Hugo has accomplished some major milestones
led the development of Hugo for the 3rd consecutive release
with nearly half of the contributions to 0.16 in addition to his considerable
contributions as lead maintainer.
all made significant
contributions. A special thanks to
for his considerable
work on multilingual support. Due to its broad impact we wanted to spend more
time testing it and it will be included in Hugo’s next release.
Partial Builds: Prior to this release Hugo would always reread and rebuild
the entire site. This release introduces support for reactive site building
while watching (hugo server). Hugo will watch the filesystem for changes and
only re-read the changed files. Depending on the files change Hugo will
intelligently re-render only the needed portion of the site. Performance gains
depend on the operation performed and size of the site. In our testing build
times decreased anywhere from 10% to 99%.
Template Improvements: Template improvements continue to be a mainstay of each Hugo release. Hugo 0.16 adds support for the new block keyword introduced in Go 1.6 – think base templates with default sections – as well as many new template functions.
Polish: As Hugo matures releases will inevitably contain fewer huge new features. This release represents hundreds of small improvements across ever facet of Hugo which will make for a much better experience for all of our users. Worth mentioning here is the curious bug where live reloading didn’t work in some editors on OS X, including the popular TextMate 2. This is now fixed. Oh, and now any error will exit with an error code, a big thing for automated deployments.
Support reading configuration variables from the OS environment
Use default sitemap configuration for homepage
Exit if specific port is unavailable in server mode
Fix regression in “section menus for lazy blogger”
0.15.0 November 25, 2015
The v0.15.0 Hugo release brings a lot of polish to Hugo. Exactly 6 months after
the 0.14 release, Hugo has seen massive growth and changes. Most notably, this
is Hugo’s first release under the Apache 2.0 license. With this license change
we hope to expand the great community around Hugo and make it easier for our
many users to contribute. This release represents over 377 contributions by
87 contributors to the main Hugo repo and hundreds of improvements to the
libraries Hugo uses. Hugo also launched a new theme
showcase and participated in
Hugo now has:
6700 (+2700) stars on GitHub
235 (+75) contributors
65 (+30) themes
Template Improvements: This release takes Hugo to a new level of speed and
usability. Considerable work has been done adding features and performance to
the template system which now has full support of Ace, Amber and Go Templates.
Hugo Import: Have a Jekyll site, but dreaming of porting it to Hugo? This
release introduces a new hugo import jekyllcommand that makes this easier
Performance Improvements: Just when you thought Hugo couldn’t get any faster,
Hugo continues to improve in speed while adding features. Notably Hugo 0.15
introduces the ability to render and serve directly from memory resulting in
30%+ lower render times.
The new Param convenience method on Page and Node can be used to get the most specific parameter value for a given key.
Several new information elements have been added to Page and Node:
RuneCount: The number of runes in the content, excluding any whitespace. This may be a good alternative to .WordCount for Japanese and other CJK languages where a word-split by spaces makes no sense.
RawContent: Raw Markdown as a string. One use case may be of embedding remarkjs.com slides.
IsHome: tells the truth about whether you’re on the home page or not.
hugo server now builds ~30%+ faster by rendering to memory instead of disk. To get the old behavior, start the server with --renderToDisk=true.
Hugo now supports dynamic reloading of the config file when watching.
We now use a custom-built LazyFileReader for reading file contents, which means we don’t read media files in /content into memory anymore – and file reading is now performed in parallel on multicore PCs.
Hugo is now built with Go 1.5 which, among many other improvements, have fixed the last known data race in Hugo.
Hugo is now shipped with new built-in shortcodes:
youtube for YouTube videos
vimeo for Vimeo videos
gist for GitHub gists
tweet for Twitter Tweets
speakerdeck for Speakerdeck slides
Fix data races in page sorting and page reversal. These operations are now also cached.
page.HasMenuCurrent() and node.HasMenuCurrent() now work correctly in multi-level nested menus.
Support Fish and Chips style section titles. Previously, this would end up as Fish And Chips. Now, the first character is made toupper, but the rest are preserved as-is.
Hugo now removes superfluous p-tags around shortcodes.
hugo server will watch by default now.
Some fields and methods were deprecated in 0.14. These are now removed, so the error message isn’t as friendly if you still use the old values. So please change:
getJson to getJSON, getCsv to getCSV, safeHtml to
safeHTML, safeCss to safeCSS, safeUrl to safeURL, Url to URL,
UrlPath to URLPath, BaseUrl to BaseURL, Recent to Pages.
Using the Hugo v0.15 32-bit Windows or ARM binary, running hugo server would crash or hang due to a memory alignment issue in Afero. The bug was discovered shortly after the v0.15.0 release and has since been fixed by
. If you encounter this bug, you may either compile Hugo v0.16-DEV from source, or use the following solution/workaround: