]> git.maquefel.me Git - brevno-suite/hugo/commit
Add the [params] concept to front matter
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 28 Jan 2024 16:32:26 +0000 (17:32 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 28 Jan 2024 20:38:40 +0000 (21:38 +0100)
commit6dedb4efc7b6a9fbe58a2daf0f77182638840fd9
tree498ce0c315623d20c2ab9ed166f3133a9185b689
parent292626e679e5203faf3d42f004c12027da3e4300
Add the [params] concept to front matter

This is deliberately very simple, but should not break anything. We need to introduce this in baby steps, but this should allow us to introduce this in the documentation.

Note that the `params` section's key/values will be added to `.Params` last. This means that you can have different values for "Hugo's summary" and the custom ".Params.summary" if you want to.

Updates #11055
hugolib/page__meta.go
hugolib/params_test.go [new file with mode: 0644]
resources/page/page_matcher.go