Hugo Release 0.76.0


Multiple Cascades With Page Filters

Hugo 0.76.0 brings multiple cascade blocks per page with filters for path, kind and language.

October 6, 2020

Go to Hugo Releases for the release downloads.

Featured Image for Multiple Cascades With Page Filters

In Hugo 0.76.0 you can now have a list of cascade blocks per page and a new _target keyword where you can select which pages to cascade upon using Glob patterns for a Page’s Kind, Lang and/or Path:

title ="Blog"
[[cascade]]
background = "yosemite.jpg"
[cascade._target]
path="/blog/**"
lang="en"
kind="page"
[[cascade]]
background = "goldenbridge.jpg"
[cascade._target]
kind="section"

Tasks that were earlier hard/borderline impossible to do are now simple. One common example would to apply a different template set to nested sections; you can now apply a customm Type to these sections using path="/blog/*/**" and similar.

https://gohugo.io/news/0.76.0-relnotes/