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

Closed
deining opened this issue Mar 16, 2024 · 2 comments · Fixed by #12930
Closed

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

deining opened this issue Mar 16, 2024 · 2 comments · Fixed by #12930

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.

@bep bep added this to the v0.130.0 milestone Jul 22, 2024
@bep bep removed the NeedsTriage label Jul 22, 2024
@bep bep modified the milestones: v0.130.0, v0.131.0 Jul 30, 2024
@bep bep modified the milestones: v0.131.0, v0.133.0 Aug 9, 2024
@bep bep modified the milestones: v0.133.0, Unscheduled Aug 29, 2024
nicolinuxfr added a commit to nicolinuxfr/nicolasfurno that referenced this issue Sep 5, 2024
jvns added a commit to jvns/hugo that referenced this issue Oct 13, 2024
@bep bep closed this as completed in 5bb22b6 Oct 14, 2024
Copy link

github-actions bot commented Nov 5, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants