Page MenuHomePhorge

Site.Author deprecated in version 0.124.0
Open, NormalPublicDEFECT

Description

When creating new post with hugo new --kind post, the command run succesfully but also return following error:

ERROR deprecated: .Site.Author was deprecated in Hugo v0.124.0 and subsequently removed.
Implement taxonomy 'author' or use .Site.Params.Author instead.

Steps to Reproduce

  1. Use Hugo version v0.124.0 or newer
  2. Create new post with hugo new
  3. Hugo throws the error above when encountering .Site.Author

Expected Behavior

The theme/templates should avoid using the removed .Site.Author variable and instead use one of the supported alternatives.

Suggested Fix

Replace usages of:

.Site.Author

with either:

.Site.Params.Author

or implement the Hugo author taxonomy, depending on the intended use.

Example:

.Site.Params.Author.name

Environment

  • Hugo version: hugo v0.152.2+extended linux/amd64 BuildDate=2025-12-14T00:00:00+00:00 VendorInfo=Fedora:0.152.2-1.fc42
  • Theme version: 3bb0ca2

Event Timeline

nawan triaged this task as Normal priority.