diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-29 10:02:24 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-30 20:12:03 +0100 |
commit | f31a6db797c9251a362ef9f8ad4c03fb608b5ac0 (patch) | |
tree | a47dbb5764cfc96c49882e13a7da279dc43b1eb5 /hugolib/site_new.go | |
parent | ec22bb31a89883db5ca95404cda4f74344fd3762 (diff) | |
download | hugo-f31a6db797c9251a362ef9f8ad4c03fb608b5ac0.tar.gz hugo-f31a6db797c9251a362ef9f8ad4c03fb608b5ac0.zip |
Add path, kind and lang to content front matter
Note that none of these can be set via cascade (you will get an error)
Fixes #11544
Diffstat (limited to 'hugolib/site_new.go')
-rw-r--r-- | hugolib/site_new.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/site_new.go b/hugolib/site_new.go index ddf45c286..0cab71352 100644 --- a/hugolib/site_new.go +++ b/hugolib/site_new.go @@ -40,6 +40,7 @@ import ( "github.com/gohugoio/hugo/navigation" "github.com/gohugoio/hugo/output" "github.com/gohugoio/hugo/publisher" + "github.com/gohugoio/hugo/resources" "github.com/gohugoio/hugo/resources/page" "github.com/gohugoio/hugo/resources/page/pagemeta" "github.com/gohugoio/hugo/resources/page/siteidentities" @@ -281,6 +282,7 @@ func newHugoSites(cfg deps.DepsCfg, d *deps.Deps, pageTrees *pageTrees, sites [] page.Pages](d.MemCache, "/pags/all", dynacache.OptionsPartition{Weight: 10, ClearWhen: dynacache.ClearOnRebuild}, ), + cacheContentSource: dynacache.GetOrCreatePartition[string, *resources.StaleValue[[]byte]](d.MemCache, "/cont/src", dynacache.OptionsPartition{Weight: 70, ClearWhen: dynacache.ClearOnChange}), translationKeyPages: maps.NewSliceCache[page.Page](), currentSite: sites[0], skipRebuildForFilenames: make(map[string]bool), |