GeistHaus
log in · sign up

Release v0.109.0 · gohugoio/hugo

github.com

Hugo v0.109.0 is the last release of 2022 – and with that we're wishing all of you a very merry Christmas and a prosperous new year1. Notable new features Pass variables to SCSS/SASS Hugo has had g...

1 page links to this URL
Using New Feature While Maintaining Backward Compatibility in Hugo Templates

In the recent v0.109.0 release of Hugo, a new .Ancestors page variable was added to make it easier to implement a breadcrumb navigation template. The new variable’s usefulness is clearly shown by how the example breadcrumb template in Hugo documentation has been simplified and become easier to understand, as presented below (code modified for readability). It is no longer necessary to create a helper inline partial (i.e. breadcrumbnav in the following example) and call it recursively. …

0 inbound links article en CC BY-SA 4.0