aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__new.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-06-07 16:36:48 +0200
committerBjørn Erik Pedersen <[email protected]>2021-06-07 19:11:03 +0200
commitf55d2f43769053b80b419a690554e747dc5dcede (patch)
treef8c5bdc95df123f2abb04d66b87af4bf9237f086 /hugolib/page__new.go
parent282f1aa3db9f6420fdd360e46db1ffadd5b083a1 (diff)
downloadhugo-f55d2f43769053b80b419a690554e747dc5dcede.tar.gz
hugo-f55d2f43769053b80b419a690554e747dc5dcede.zip
tpl/fmt: Add erroridf template func
Fixes #8613
Diffstat (limited to 'hugolib/page__new.go')
-rw-r--r--hugolib/page__new.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page__new.go b/hugolib/page__new.go
index b37631477..8c96d5014 100644
--- a/hugolib/page__new.go
+++ b/hugolib/page__new.go
@@ -102,7 +102,7 @@ func newPageFromMeta(
meta map[string]interface{},
metaProvider *pageMeta) (*pageState, error) {
if metaProvider.f == nil {
- metaProvider.f = page.NewZeroFile(metaProvider.s.DistinctWarningLog)
+ metaProvider.f = page.NewZeroFile(metaProvider.s.LogDistinct)
}
ps, err := newPageBase(metaProvider)