tpl: Warn and skip non-hook templates inside /layouts/_markup

Fixes #13577
This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 15:57:29 +02:00
parent 653f1c1d46
commit 383dd82f95
3 changed files with 39 additions and 5 deletions

View File

@@ -396,6 +396,7 @@ func newHugoSites(cfg deps.DepsCfg, d *deps.Deps, pageTrees *pageTrees, sites []
templateStore, err := tplimpl.NewStore(
tplimpl.StoreOptions{
Fs: s.BaseFs.Layouts.Fs,
Log: s.Log,
DefaultContentLanguage: s.Conf.DefaultContentLanguage(),
Watching: s.Conf.Watching(),
PathParser: s.Conf.PathParser(),