aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__meta.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-03 18:09:52 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-03 18:10:38 +0100
commit53f204310ec8362d7084c123e8e16f5bb73dd257 (patch)
treed227e23ec9bf0ef1107dc6528ecfd73182ae73ed /hugolib/page__meta.go
parent7f82461407e21ba5b80380d12906fadd12b93e2d (diff)
downloadhugo-53f204310ec8362d7084c123e8e16f5bb73dd257.tar.gz
hugo-53f204310ec8362d7084c123e8e16f5bb73dd257.zip
all: Rename Unmormalized => Unnormalized
Diffstat (limited to 'hugolib/page__meta.go')
-rw-r--r--hugolib/page__meta.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page__meta.go b/hugolib/page__meta.go
index 7b785abb6..34fd096bd 100644
--- a/hugolib/page__meta.go
+++ b/hugolib/page__meta.go
@@ -195,7 +195,7 @@ func (p *pageMeta) Name() string {
return p.resourcePath
}
if p.pageConfig.Kind == kinds.KindTerm {
- return p.pathInfo.Unmormalized().BaseNameNoIdentifier()
+ return p.pathInfo.Unnormalized().BaseNameNoIdentifier()
}
return p.Title()
}
@@ -742,7 +742,7 @@ func (p *pageMeta) applyDefaultValues() error {
case kinds.KindHome:
p.pageConfig.Title = p.s.Title()
case kinds.KindSection:
- sectionName := p.pathInfo.Unmormalized().BaseNameNoIdentifier()
+ sectionName := p.pathInfo.Unnormalized().BaseNameNoIdentifier()
if p.s.conf.PluralizeListTitles {
sectionName = flect.Pluralize(sectionName)
}
@@ -754,7 +754,7 @@ func (p *pageMeta) applyDefaultValues() error {
panic("term not set")
}
case kinds.KindTaxonomy:
- p.pageConfig.Title = strings.Replace(p.s.conf.C.CreateTitle(p.pathInfo.Unmormalized().BaseNameNoIdentifier()), "-", " ", -1)
+ p.pageConfig.Title = strings.Replace(p.s.conf.C.CreateTitle(p.pathInfo.Unnormalized().BaseNameNoIdentifier()), "-", " ", -1)
case kinds.KindStatus404:
p.pageConfig.Title = "404 Page not found"
}