mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Fix term template lookup when its backed by a content file
Closes #12146
This commit is contained in:
@@ -1552,8 +1552,10 @@ func (sa *sitePagesAssembler) assembleTermsAndTranslations() error {
|
||||
}
|
||||
pages.InsertIntoValuesDimension(pi.Base(), n)
|
||||
term = pages.Get(pi.Base())
|
||||
} else if term.(*pageState).m.term != v {
|
||||
term.(*pageState).m.term = v
|
||||
} else {
|
||||
m := term.(*pageState).m
|
||||
m.term = v
|
||||
m.singular = viewName.singular
|
||||
}
|
||||
|
||||
if s == "" {
|
||||
|
Reference in New Issue
Block a user