Fix taxonomy

Recently introduced in master.

See https://github.com/gohugoio/hugo/issues/6897#issuecomment-587499907
This commit is contained in:
Bjørn Erik Pedersen
2020-02-18 16:16:09 +01:00
parent 19e12caf8c
commit 1b7acfe763
3 changed files with 35 additions and 0 deletions

View File

@@ -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