Hugo Release 0.76.0
Hugo 0.76.0 brings multiple cascade blocks per page with filters for path, kind and language
124 Words
2020-10-06 18:32 +0200
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.
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 aPage
’sKind
,Lang
and/orPath
: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 usingpath="/blog/*/**"
and similar.