mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
committed by
Bjørn Erik Pedersen
parent
9ea7103db7
commit
171836cdfa
@@ -690,13 +690,10 @@ func (p *pageMeta) applyDefaultValues(n *contentNode) error {
|
||||
} else {
|
||||
sectionName = p.sections[0]
|
||||
}
|
||||
|
||||
sectionName = helpers.FirstUpper(sectionName)
|
||||
if p.s.conf.PluralizeListTitles {
|
||||
p.title = flect.Pluralize(sectionName)
|
||||
} else {
|
||||
p.title = sectionName
|
||||
sectionName = flect.Pluralize(sectionName)
|
||||
}
|
||||
p.title = p.s.conf.C.CreateTitle(sectionName)
|
||||
case kinds.KindTerm:
|
||||
// TODO(bep) improve
|
||||
key := p.sections[len(p.sections)-1]
|
||||
|
Reference in New Issue
Block a user