-
-
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
[BUG] Deprecation of .Site.Social #1573
Comments
Its a warning, chill |
If you just want to make it disappear: hugo.toml
not sure about any side effects though. 🤷🏻 |
The reason you see the warning is because unless the social option is present, site.Social will be evaluated. hugo-PaperMod/layouts/partials/templates/twitter_cards.html Lines 21 to 30 in 58c4841
& hugo-PaperMod/layouts/partials/templates/opengraph.html Lines 46 to 56 in 58c4841
|
OK, I will try. |
I get the warning too. And I get the ways you can go to fix it. But it is a bug that will need to be addressed. |
Thanks! |
Prior to v0.136.0 this emits a warning. |
While it's a warning that can be worked around, it means that the tutorial at https://gohugo.io/getting-started/quick-start/ doesn't work. Following the tutorial steps of adding a post then running the server gives error messages. So the initial impression could be better. I started the tutorial, thought this looks great, then within 15 minutes found myself dealing with an error message that told me what the problem was but not where the problem was. |
Well, that behavior — that Hugo error messages frequently don't include a file location where the error was encountered — is an issue for the Hugo developers (https://github.com/gohugoio/hugo/). The PaperMod theme creators have no control over the way Hugo displays error messages.
That tutorial uses the Ananke theme, not the PaperMod theme. So if you hit the error while following that tutorial, then it wasn't an issue with PaperMod, and it can't be addressed in the PaperMod theme. |
Hello, I fixed it, please see below my solution.
Have a good day. |
Finding difficult to keep up with Hugo'a pace of development. I work on a full time job with most saturdays working. Unable to keep aside some time for this at the moment. Very sorry. |
A workaround for adityatelange/hugo-PaperMod#1573.
@adityatelange
|
Just for people to know, a PR is out to fix this #1620 |
Workaround for adityatelange/hugo-PaperMod#1573 Until adityatelange/hugo-PaperMod#1620 gets merged Signed-off-by: penglezos <[email protected]>
Also ran into this on builds using hugo's github action:
@adityatelange - We appreciate all the incredible work that's gone into this theme!! It's been a big productivity boost for me personally. Please let the community know how we can continue to support you and this project!! |
Yes, you are right, work. |
Upstream patches from Hugo and @jpmcb for templates are pushed. This should fix the issue. |
[BUG] Deprecation of .Site.Social #1573 adityatelange/hugo-PaperMod#1573
Thank you. That worked. |
@adityatelange could you cut a new release please? This appears broken in v8.0 |
Can you please explain by changing these what does it actually do? Does it only remove the warning or solve the papermod theme issue? |
The previous error was due to a change in syntax. This correction directly uses the appropriate writing method of the new version, thus solving the problem. |
Thanks |
Describe the bug
Steps to reproduce the behavior:
Using latest hugo version
Run
hugo server
Expected behavior:
No Deprecation notice
Repo/Source where this issue can be reproduced:
N/A
Screenshots
N/A
Additional context
.Site.Social was deprecated in Hugo v0.124.0 and will be removed in a future release. Use .Site.Params instead.
The text was updated successfully, but these errors were encountered: