halogenica / beautifulhugo

Theme for the Hugo static website generator
Other
1.13k stars 601 forks source link

Hugo v0.120.1: depecation warnings #480

Closed deining closed 1 month ago

deining commented 10 months ago

When previewing or building the example site with latest hugo version v0.120.1, deprecation warnings are shown:

Start building sites … 
hugo v0.120.1-16fb2cae88eb6add7d12e9fbfcf01d8670e60a35+extended linux/amd64 BuildDate=2023-10-30T16:44:31Z VendorInfo=gohugoio

WARN  The author key in site configuration is deprecated. Use params.author.email instead.
WARN  The author key in site configuration is deprecated. Use params.author.name instead.
vinceyoumans commented 9 months ago

try modifying your hugo.toml file like this:

[[params.author]]
  email = "youremail@domain.com"
  name = "Some Person"

[Author]
  # Set only your "username" for default hosts and full URLs otherwise (e.g., "https://MyGitLab.org/username")
  #name = "Some Person"
  website = "yourwebsite.com"
  # email = "youremail@domain.com"
henryiii commented 1 month ago

We now require 0.120+, and most warnings are gone (minus one we have to show for a while to help people migrate)