mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Add parent as owner to Site
And pull up common member vars like Tmpl and Multilinguage. Or: the final multilingual TODO-fixes. See #2309
This commit is contained in:
@@ -72,7 +72,10 @@ func (ml *Multilingual) enabled() bool {
|
||||
}
|
||||
|
||||
func (s *Site) multilingualEnabled() bool {
|
||||
return s.Multilingual != nil && s.Multilingual.enabled()
|
||||
if s.owner == nil {
|
||||
return false
|
||||
}
|
||||
return s.owner.multilingual != nil && s.owner.multilingual.enabled()
|
||||
}
|
||||
|
||||
func toSortedLanguages(l map[string]interface{}) (helpers.Languages, error) {
|
||||
|
Reference in New Issue
Block a user