You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build on latest hugo, there is adeprecation warning for Language.Params for PaperMod layout files. This causes build to fail.
This is due to recent enhancements with Hugo handling language configs.
Related issue on hugo's issue tracker: gohugoio/hugo#10947
Device/Os: WSL Ubuntu 22.04 running on WSL on Windows 10. - Likely all devices and operating systems.
~/path/to/project$ hugo --panicOnWarning
Start building sites …
hugo v0.112.0-0a95d6704a8ac8d41cc5ca8fffaad8c5c7a3754a+extended linux/amd64 BuildDate=2023-05-23T08:14:20Z VendorInfo=gohugoio
WARN 2023/05/23 11:55:27 .Language.Params is deprecated and will be removed in a future release. .Language.Params is deprecated and will be removed in a future release. Use site.Params instead.
For all but custom parameters, you need to use the built in Hugo variables, e.g. site.Title, site.LanguageCode; site.Language.Params.Title will not work.
All custom parameters needs to be placed below params, e.g. [languages.en.params] in TOML.
Total in 3873 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/path/to/project/themes/PaperMod/layouts/_default/single.html:39:26": execute of template failed: template: _default/single.html:39:26: executing "main" at <.Language.Params.Taxonomies.tag>: error calling Params: Warning trapped. Remove the --panicOnWarning flag to continue.
The text was updated successfully, but these errors were encountered:
I've a PR incoming that addresses this issue, but there is one consideration - the minimum version of Hugo that this project seeks to support.
Addressing the deprecation issue may well require incrementing the minimum version of Hugo from v0.97.1 to v0.112.0.
If increasing the minimum supported version of Hugo is a consideration that the hugo-PaperMod authors and contributors do not plan to support at the current moment, please feel free to ignore this issue for a while.
Describe the bug
When attempting to build on latest hugo, there is adeprecation warning for Language.Params for PaperMod layout files. This causes build to fail.
This is due to recent enhancements with Hugo handling language configs.
Related issue on hugo's issue tracker: gohugoio/hugo#10947
Steps to reproduce the behavior:
hugo --panicOnWarning
command in your project root directory to attempt to build the project.Expected behavior:
hugo --panicOnWarning
to attempt to build the project.Repo/Source where this issue can be reproduced:
https://github.com/adityatelange/hugo-PaperMod/releases/tag/v7.0
https://github.com/adityatelange/hugo-PaperMod/tree/master (as of 2023/05/23
Error message
The text was updated successfully, but these errors were encountered: