mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
Fix menu URL for node type pages
By delaying the menu assembly. Fixes #2770
This commit is contained in:
@@ -1328,8 +1328,6 @@ func readCollator(s *Site, results <-chan HandledResult, errs chan<- error) {
|
||||
func (s *Site) buildSiteMeta() (err error) {
|
||||
defer s.timerStep("build Site meta")
|
||||
|
||||
s.assembleMenus()
|
||||
|
||||
if len(s.Pages) == 0 {
|
||||
return
|
||||
}
|
||||
@@ -1343,6 +1341,8 @@ func (s *Site) buildSiteMeta() (err error) {
|
||||
|
||||
s.assembleSections()
|
||||
|
||||
s.assembleMenus()
|
||||
|
||||
s.Info.LastChange = s.Pages[0].Lastmod
|
||||
|
||||
return
|
||||
|
Reference in New Issue
Block a user