mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
@@ -743,9 +743,12 @@ func (m *pageMaps) AssemblePages() error {
|
||||
sw := §ionWalker{m: pm.contentMap}
|
||||
a := sw.applyAggregates()
|
||||
|
||||
if a.mainSection != "" && len(pm.s.s.conf.C.MainSections) == 0 {
|
||||
if a.mainSection != "" {
|
||||
// Note, sites that have no custom config share a common config struct pointer.
|
||||
// This means that we currently do not support setting different values per language.
|
||||
// The end user can, however, configure this per language if needed.
|
||||
mainSections := []string{strings.TrimRight(a.mainSection, "/")}
|
||||
pm.s.s.conf.C.SetMainSections(mainSections)
|
||||
pm.s.s.conf.C.SetMainSectionsIfNotSet(mainSections)
|
||||
}
|
||||
pm.s.lastmod = a.datesAll.Lastmod()
|
||||
if resource.IsZeroDates(pm.s.home) {
|
||||
|
Reference in New Issue
Block a user