hugo v0.59.0 Release Notes

Release Date: 2019-10-21 // over 4 years ago
  • ๐Ÿš€ 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:

    Notes

    • ๐Ÿ‘€ 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

    โœจ Enhancements

    Templates

    Output

    Other

    ๐Ÿ›  Fixes

    Core

    Other