gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.32k stars 7.43k forks source link

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

Open deining opened 5 months ago

deining commented 5 months ago

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 commented 4 months ago

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.