diff --git a/hugo.toml b/hugo.toml index f1716c3ea..8c43c8a04 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,7 +2,6 @@ baseURL = "https://gohugo.io/" defaultContentLanguage = "en" enableEmoji = true ignoreLogs = ["error-missing-instagram-accesstoken"] -languageCode = "en-us" pluralizeListTitles = false timeZone = "Europe/Oslo" title = "Hugo" @@ -37,6 +36,7 @@ disableAliases = true [languages] [languages.en] languageName = "English" + languageCode = "en-US" weight = 1 [security] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2609acbab..20b9e7d9d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,14 +1,9 @@ + lang="{{ or site.Language.LanguageCode `en-US` }}">
- +