-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Removed deprecated code breaking my hugo deployment #1620
Conversation
Quality Gate passedIssues Measures |
This change appears to have fixed the problem I encountered when using this theme on the following Hugo version.
Without this change, the following error would prevent builds:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, this is an appropriate fix :)
It works as intended, thanks for the fix! |
Workaround for adityatelange/hugo-PaperMod#1573 Until adityatelange/hugo-PaperMod#1620 gets merged Signed-off-by: penglezos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally using l50:master
and LGTM!! 🚀
Closes: #1573
… in Hugo 0.137.0. Implement taxonomy 'social' or use .Site.Params.Social instead. Fixed by using another fork of papermod with a fix applied: adityatelange/hugo-PaperMod#1620
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works, thanks for sharing it!
Thanks for the PR. This is fixed with 65bd711 |
What does this PR change? What problem does it solve?
This PR removes deprecated
site.Social
references from Hugo templates and updates them to usesite.Params.social
exclusively. It eliminates deprecation warnings for Facebook and Twitter social configs and simplifies the logic for retrieving social media configuration values. These changes resolved deploy issues that I was experiencing - trunk appears to be broken.Key changes include:
opengraph.html
to remove fallback tosite.Social.facebook_admin
twitter_cards.html
to remove fallback tosite.Social.twitter
site.Social
in both template filesThis change resolves deployment issues caused by deprecated Hugo configuration syntax, ensuring compatibility with the latest Hugo versions and removing potential sources of errors or warnings during site builds.
PR Checklist