panr / hugo-theme-terminal

A simple, retro theme for Hugo
MIT License
1.96k stars 737 forks source link

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

Closed ghost closed 2 weeks ago

ghost commented 1 year ago

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.