diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-04-05 11:05:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-04-05 11:20:09 +0200 |
commit | 1d9dde82a0577d93eea8ed0a7ec0b4ae3068eb19 (patch) | |
tree | d8cdf2376e9ee7ffbb52e8af381f219887b39b22 /hugolib/site_sections.go | |
parent | 87b16abd93ff60acd245776d5b0d914fd580c259 (diff) | |
download | hugo-1d9dde82a0577d93eea8ed0a7ec0b4ae3068eb19.tar.gz hugo-1d9dde82a0577d93eea8ed0a7ec0b4ae3068eb19.zip |
hugolib: Fix default date assignment for sections
See #5784
Diffstat (limited to 'hugolib/site_sections.go')
-rw-r--r-- | hugolib/site_sections.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/site_sections.go b/hugolib/site_sections.go index d383e6389..9090c3ede 100644 --- a/hugolib/site_sections.go +++ b/hugolib/site_sections.go @@ -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 }) |