]> git.maquefel.me Git - brevno-suite/hugo/commit
resources/page: Expand parmalinks tokens in `url`
authorn1xx1 <me@simonemiraglia.it>
Thu, 1 Aug 2024 10:14:29 +0000 (12:14 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Aug 2024 10:14:29 +0000 (12:14 +0200)
commit566fe7ba12e7ecabadffa9ec76b319d04063c78b
tree227ffdfe6d1cb203f87f2930b9d892adb243805c
parent92573012e83bf8d71a247027d2f7f7f43a9c42b7
resources/page: Expand parmalinks tokens in `url`

This change allows to use permalink tokens in url front matter fields. This should be useful to target more specific pages instead of using a global permalink configuration. It's expected to be used with cascade.

Fixes #9714
common/hreflect/helpers.go
common/maps/cache.go
hugolib/page__paths.go
hugolib/page_permalink_test.go
resources/page/permalinks.go
resources/page/permalinks_integration_test.go
tpl/templates/templates.go