hugo/docs/content/en/news/0.49-relnotes/index.md
2018-10-29 09:23:25 +01:00

14 KiB


date: 2018-09-24 title: "Hugo 0.49: Directory Based Archetypes" description: "Hugo 0.49 brings archetype bundle support and collection goodness." categories: ["Releases"]

Hugo 0.49 brings directory based archetypes and also improves the language handling in hugo new. This should simplify working with page bundles. One example of this would be how you now can create a new showcase for the Hugo web site.

But this release is also about collections. Go 1.11 gave us variable overwrite support in Go templates. That made it possible to simplify a lot of template constructs, but it also showed some limitations in Hugo's template functions. So with this release we have:

  • added append function to append to collections.
  • added group to create custom page groups.
  • improved the type support in slice.

This release represents 66 contributions by 9 contributors to the main Hugo code base. @bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @moorereason, @felicianotech, and @vdanjean 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 37 contributions by 20 contributors. A special thanks to @bep, @kaushalmodi, @AlexChambers, and @shaform for their work on the documentation site.

Hugo now has:

Notes

  • Remove deprecated rssURI f1a00b20 @bep
  • Remove deprecated flags df4cbbd3 @bep
  • Deprecate Pages.Sort. Use .ByWeight 2e2e34a9 @bep
  • When setting preserveTaxonomyNames Hugo now really preserves them. Before this release, we would make the first character upper case. If this is the behaviour you want you can use the new strings.FirstUpper function.

Enhancements

Templates

Core

Other

Fixes