diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-13 15:42:30 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-13 18:06:36 +0200 |
commit | cc44583cc3976bf115c06474f47889d49842315e (patch) | |
tree | f0588d654db3371586ed7a439142a70e34dbc705 /hugolib/hugo_sites.go | |
parent | 4da672af888cbd0db79463bf456b5210ad9a463d (diff) | |
download | hugo-cc44583cc3976bf115c06474f47889d49842315e.tar.gz hugo-cc44583cc3976bf115c06474f47889d49842315e.zip |
Improve behavior of defaultContentLanguageInSubdir when only the default language is enabled
1 .Create sitemapindex in root of publishDir (will contain link to sitemap.xml in defaultContentLanguage site)
2. Create index.html in root of publishDir (will redirect to defaultContentLanguage site)
Fixes #11229
Diffstat (limited to 'hugolib/hugo_sites.go')
-rw-r--r-- | hugolib/hugo_sites.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go index 9c121f7ac..de19a3669 100644 --- a/hugolib/hugo_sites.go +++ b/hugolib/hugo_sites.go @@ -437,7 +437,7 @@ func (cfg *BuildCfg) shouldRender(p *pageState) bool { } func (h *HugoSites) renderCrossSitesSitemap() error { - if !h.isMultiLingual() || h.Conf.IsMultihost() { + if h.Conf.IsMultihost() || !(h.Conf.DefaultContentLanguageInSubdir() || h.Conf.IsMultiLingual()) { return nil } |