ref: a7af63037c1c8d0df63a6b9b9ea6a4955c31f03e
parent: b6673e5309685ae162fdef2dc39c3ce4385c6005
author: Bjørn Erik Pedersen <[email protected]>
date: Sat Sep 17 12:53:58 EDT 2016
Make suure SectionPagesMenu setting is always loaded per language
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -880,7 +880,7 @@
func (p *Page) HasMenuCurrent(menu string, me *MenuEntry) bool {
menus := p.Menus()
- sectionPagesMenu := viper.GetString("SectionPagesMenu")
+ sectionPagesMenu := helpers.Config().GetString("SectionPagesMenu")
// page is labeled as "shadow-member" of the menu with the same identifier as the section
if sectionPagesMenu != "" && p.Section() != "" && sectionPagesMenu == menu && p.Section() == me.Identifier {