Hugo 0.57.2: A couple of Bug Fixes
Hugo 0.57.0 had some well-intended breaking changes. And while they made a lot of sense, one of them made a little too much noise.
This release reverts the behavior for .Pages
on the home page to how it behaved in 0.56, but adds a WARNING
telling you what to do to prepare for Hugo 0.58.
In short, .Page
home will from 0.58 only return its immediate children (sections and regular pages).
In this release it returns .Site.RegularPages
. So to prepare for Hugo 0.58 you can either use .Site.RegularPages
in your home template, or if you have a general list.html
or RSS template, you can do something like this:
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := $pctx.RegularPages -}}
- tpl: Use RegularPages for RSS template 88d69936 @bep #6238
- hugolib: Don’t use the global warning logger ea681603 @bep #6238
- tpl: Avoid “home page warning” in RSS template 564cf1bb @bep #6238
- hugolib: Allow index.md inside bundles 4b4bdcfe @bep #6208
- Adjust the default paginator for sections 18836a71 @bep #6231
- hugolib: Add a site benchmark 416493b5 @bep
- Update to Go 1.11.13 and 1.12.9 f28efd35 @bep #6228
Last Update: October 21, 2019
Improve this page
Improve this page