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

Deprecation warning for .Site.Author: confusing replacement advice #12269

Open
deining opened this issue Mar 16, 2024 · 1 comment
Open

Deprecation warning for .Site.Author: confusing replacement advice #12269

deining opened this issue Mar 16, 2024 · 1 comment

Comments

@deining
Copy link
Contributor

deining commented Mar 16, 2024

I just built my site with newly released version 0.124.0 and got this deprecation warning (my site theme used Site.Author in the themes list.rss.xml template):

INFO  deprecated: .Site.Author was deprecated in Hugo v0.124.0 
and will be removed in a future release.
Use taxonomies instead.

Only after reading this comment, I realized that the solution to fix this in the theme was to use .Site.Params.Author. Therefore I propose to alter this message to:

Use .Site.Params.Author instead.

Or am I overlooking something? Then we should at least add to use .Site.Params.Author as solution:

Implement taxonomy 'author' or use .Site.Params.Author instead.

Reference: https://discourse.gohugo.io/t/deprecation-warning-for-site-author-confusing-replacement-advice/48874

@thomasweitzel
Copy link

I get the same INFO message: deprecated: .Site.Author was deprecated in Hugo v0.124.0 .... Even though I don't use it in any of my templates. Additionally, I only have two places where I use .Params.Author.

It's just an INFO, so I can ignore it, but it's confusing still. Glad they will fix it.

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

No branches or pull requests

2 participants