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

Deprecated Variables in Hugo > v0.120.0: Social, Authors, and DisqusShortname #28

Open
bradstimpson opened this issue Aug 17, 2024 · 0 comments

Comments

@bradstimpson
Copy link

Hi Everyone,

I recently tried to build this theme into Hugo v0.132.1 and had these warnings/errors:

WARN  deprecated: .Site.Social was deprecated in Hugo v0.124.0 and will be removed in a future release. Use .Site.Params instead.
WARN  deprecated: .Site.Authors was deprecated in Hugo v0.124.0 and will be removed in a future release. Use taxonomies instead.
ERROR deprecated: .Site.DisqusShortname was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.133.0. Use .Site.Config.Services.Disqus.Shortname instead.

The last error prevented hugo from starting. I fixed it with the following:

sed -i 's/{{ if .Site.DisqusShortname }}/{{ if .Site.Config.Services.Disqus.Shortname }}/g' "andromeda-light-hugo/layouts/blog/single.html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant