mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Fix taxonomy
Recently introduced in master. See https://github.com/gohugoio/hugo/issues/6897#issuecomment-587499907
This commit is contained in:
@@ -121,6 +121,10 @@ func (pt pageTree) Parent() page.Page {
|
||||
return nil
|
||||
}
|
||||
|
||||
if pt.p.Kind() == page.KindTaxonomyTerm {
|
||||
return pt.p.s.home
|
||||
}
|
||||
|
||||
_, b := p.getTreeRef().getSection()
|
||||
if b == nil {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user