hugolib: Fix default date assignment for sections

See #5784
This commit is contained in:
Bjørn Erik Pedersen
2019-04-05 11:05:25 +02:00
parent 87b16abd93
commit 1d9dde82a0
2 changed files with 31 additions and 1 deletions

View File

@@ -162,6 +162,7 @@ func (s *Site) assembleSections() pageStatePages {
if currentSection != nil {
// A new section
currentSection.setPages(children)
currentSection.m.Dates = *dates
}
currentSection = p
@@ -176,6 +177,7 @@ func (s *Site) assembleSections() pageStatePages {
p.parent = currentSection
children = append(children, p)
dates.UpdateDateAndLastmodIfAfter(p)
return false
})