Sitemap warnings in multilingual site

What do these warnings mean?

$ hugo serve
WARN 2022/06/20 22:09:06 Unknown Sitemap field: defaultcontentlanguage
WARN 2022/06/20 22:09:06 Unknown Sitemap field: defaultcontentlanguageinsubdir
WARN 2022/06/20 22:09:06 Unknown Sitemap field: defaultcontentlanguage
WARN 2022/06/20 22:09:06 Unknown Sitemap field: defaultcontentlanguageinsubdir

1 - that it seems you have a problem in your config.toml because defaultContentLanguage is a variable and not a value, or that your call to this variable is wrong
2 - that we need you to buy us a crystal ball to tell more.

See this topic for the configuration…

Removing this part and the warnings disappear

defaultContentLanguage = 'en'
defaultContentLanguageInSubdir = true

These settings must be in the root of your config.toml file:

defaultContentLanguage
defaultContentLanguageInSubdir

I suspect that you have placed them within the sitemap table.

If you continue to have problems, post your entire site configuration.

Sitemap was the last table in the config and I placed the language codes at the end. So, you are right that might have interfered with it. I moved the code higher up.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.