diff --git a/hugo.toml b/hugo.toml index c815fa73..29a6e7a2 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,12 +1,12 @@ baseURL = 'https://example.org/' -languageCode = 'en-us' +locale = 'en-us' defaultContentLanguage = 'en-us' title = 'typo' [module] [module.hugoVersion] extended = false -min = "0.116.0" +min = "0.158.0" # Default config [params.breadcrumbs] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index dba186bf..e0e23e95 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,6 @@ - +
{{ partial "head.html" . }} diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index 9f578f9d..3c8774af 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -17,7 +17,7 @@ {{- end }} -{{- with or .Params.locale site.Language.LanguageCode }} +{{- with or .Params.locale site.Language.Locale }} {{- end }} @@ -94,4 +94,4 @@ {{- end }} {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/wiki/setup.md b/wiki/setup.md index a410385d..31ae2e32 100644 --- a/wiki/setup.md +++ b/wiki/setup.md @@ -78,7 +78,7 @@ Here is a sample `hugo.toml` config to get started with the theme. ```toml baseURL = 'https://example.org/' -languageCode = 'en-us' +locale = 'en-us' title = 'My website' theme = 'typo'