mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -1494,6 +1494,12 @@ func (p *Page) prepareData(s *Site) error {
|
||||
plural := p.sections[0]
|
||||
term := p.sections[1]
|
||||
|
||||
if s.Info.preserveTaxonomyNames {
|
||||
if v, ok := s.taxonomiesOrigKey[fmt.Sprintf("%s-%s", plural, term)]; ok {
|
||||
term = v
|
||||
}
|
||||
}
|
||||
|
||||
singular := s.taxonomiesPluralSingular[plural]
|
||||
taxonomy := s.Taxonomies[plural].Get(term)
|
||||
|
||||
|
Reference in New Issue
Block a user