Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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.

@panr panr closed this as completed Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant