Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Hugo 0.112 deprecates variables directly under [languages.XX] #470

Open
ghost opened this issue May 28, 2023 · 0 comments
Open

Hugo 0.112 deprecates variables directly under [languages.XX] #470

ghost opened this issue May 28, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented May 28, 2023

The recent release of hugo 0.112 deprecates setting variables directly under [languages.XX], where XX represents a language code. Hugo is deprecating the practice in favor of [languages.XX.params]. See this link from the official documentation.

Building a site with the deprecated variable scheme in the config file yields these warnings:

WARN 2023/05/28 21:46:21 config: languages.es.missingcontentmessage: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.keywords: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.readmore: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.missingbackbuttonlabel: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.subtitle: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.owner: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.menumore: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.olderposts: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.readotherposts: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2023/05/28 21:46:21 config: languages.es.newerposts: custom params on the language top level is deprecated and will be removed in a future release. Put the value below [languages.es.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120

Attempting to use the new variable schema breaks the theme, as it isn't finding the values where it wants to. The theme should be updated to conform to the new schema put forward by hugo 0.112, and all documentation updated accordingly, including the examples in the README.md file and inside the exampleSite.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants