st-wong / hugo-spectre-pixel-theme

MIT License
16 stars 9 forks source link

Deprecation warning: .Site.Social #5

Open panchoh opened 2 months ago

panchoh commented 2 months ago

Hi again!

On my last rebuild of my blog I got this warning from hugo:

hugo v0.133.1-47d00202e7e61769ce4d14691e43b27852c9cce4 linux/amd64 BuildDate=2024-08-26T13:58:46Z VendorInfo=gohugoio

WARN  deprecated: .Site.Social was deprecated in Hugo v0.124.0 and will be removed in a future release. Use .Site.Params instead.

I’ve seen that .Site.Params is used a lot already in your theme, so I’m not sure how to tackle this, and I thought I’d let you know.

For reference, here’s how I build my blog: https://github.com/panchoh/panchoh.github.io TL;DR: Content is stored in an org file, which is exported to markdown by Emacs, handled by a GitHub Action.

Thanks again for your theme, it’s aweeeeeeesoooooome! :-)

panchoh commented 2 months ago

See this commit. Seems it is a move from site.Social to site.Params.social.

panchoh commented 2 months ago

Ah, documented here.

panchoh commented 2 months ago

Seems that .Site.Author has gone the same route. See here as well.

panchoh commented 2 months ago

Ditto for .Site.GoogleAnalytics. Also for .Site.DisqusShortname, but this is not in use in this theme.