Skip to content

@bep bep released this Oct 21, 2019 · 1020 commits to master since this release

The timing of this release is motivated by getting the copies of the docs repositories in synch, now fully "Hugo Modularized". But it also comes with some very nice additions:

It is now possible to set the target format and the background fill color when processing images, e.g.:

{{ $image.Resize "600x jpg #b31280" }}

See Image Processing Options.

Another useful addon is the $pages.Next and $pages.Prev methods on the core page collections in Hugo. These works the same way as the built-in static variants one Page, e.g. .Next and .NextInSection:

{{with .Site.RegularPages.Next . }}{{.RelPermalink}}{{end}}

The above is a functionally equivalent (but slightly slower) variant of:

{{with .Next }}{{.RelPermalink}}{{end}}

See Pages Methods for more information.

This release represents 45 contributions by 13 contributors to the main Hugo code base. @bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @anthonyfok, @BaibhaVatsa, and @XhmikosR for their ongoing contributions.
And a big thanks to @digitalcraftsman and @onedrawingperday for their relentless work on keeping the themes site in pristine condition and to @kaushalmodi for his great work on the documentation site.

Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 34 contributions by 20 contributors. A special thanks to @bep, @celtic-coder, @napcs, and @bmackinney for their work on the documentation site.

Hugo now has:


  • Shortcode params can now be typed (supported types are string, bool int and float64, see #6376.
  • Pages.Next/.Prev as described above has existed for a long time, but they have been undocumented. They have been reimplemented for this release and now works like their namesakes on Page. This may be considered a breaking change, but it should be a welcome one, as the old behaviour wasn't very useful. See #4500








Assets 29