diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-30 10:42:24 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-30 20:12:03 +0100 |
commit | 80595bbe3e7901ecd6200e59d43af142c3c85b6b (patch) | |
tree | 5745149392c7a542891000a7740a7b7184a79226 /resources | |
parent | afee781f03df4305698bf4b6991cd10e996515c5 (diff) | |
download | hugo-80595bbe3e7901ecd6200e59d43af142c3c85b6b.tar.gz hugo-80595bbe3e7901ecd6200e59d43af142c3c85b6b.zip |
Fix recent regression .Resources.Get for resources with spaces in filename
Fixes #11944
Diffstat (limited to 'resources')
-rw-r--r-- | resources/page/pagemeta/page_frontmatter.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/page/pagemeta/page_frontmatter.go b/resources/page/pagemeta/page_frontmatter.go index 17859d846..8abd3807f 100644 --- a/resources/page/pagemeta/page_frontmatter.go +++ b/resources/page/pagemeta/page_frontmatter.go @@ -57,7 +57,7 @@ func (d Dates) IsAllDatesZero() bool { // Note that all the top level fields are reserved Hugo keywords. // Any custom configuration needs to be set in the Params map. type PageConfig struct { - Dates // Dates holds the fource core dates for this page. + Dates // Dates holds the four core dates for this page. Title string // The title of the page. LinkTitle string // The link title of the page. Type string // The content type of the page. @@ -66,6 +66,7 @@ type PageConfig struct { Weight int // The weight of the page, used in sorting if set to a non-zero value. Kind string // The kind of page, e.g. "page", "section", "home" etc. This is usually derived from the content path. Path string // The canonical path to the page, e.g. /sect/mypage. Note: Leading slash, no trailing slash, no extensions or language identifiers. + URL string // The URL to the rendered page, e.g. /sect/mypage.html. Lang string // The language code for this page. This is usually derived from the module mount or filename. Slug string // The slug for this page. Description string // The description for this page. |