mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
96f09659ce
commit
da53523599
2 changed files with 2 additions and 2 deletions
|
@ -176,8 +176,6 @@ func (m *pagesMap) addPage(p *pageState) {
|
|||
}
|
||||
|
||||
bucket = v.(*pagesMapBucket)
|
||||
p.bucket = bucket
|
||||
|
||||
bucket.pages = append(bucket.pages, p)
|
||||
}
|
||||
|
||||
|
|
|
@ -321,6 +321,8 @@ PAG|{{ .Title }}|{{ $sect.InSection . }}
|
|||
rootPage := s.getPage(page.KindPage, "mypage.md")
|
||||
c.Assert(rootPage, qt.Not(qt.IsNil))
|
||||
c.Assert(rootPage.Parent().IsHome(), qt.Equals, true)
|
||||
// https://github.com/gohugoio/hugo/issues/6365
|
||||
c.Assert(rootPage.Sections(), qt.HasLen, 0)
|
||||
|
||||
// Add a odd test for this as this looks a little bit off, but I'm not in the mood
|
||||
// to think too hard a out this right now. It works, but people will have to spell
|
||||
|
|
Loading…
Reference in a new issue