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

fix(social): replace site.Social with site.Params.social #1002

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

razonyang
Copy link
Owner

The site.Social is deprecated since Hugo v0.120.0.

Copy link

netlify bot commented Oct 31, 2023

Deploy Preview for hbs-docs ready!

Name Link
🔨 Latest commit a0f66ce
🔍 Latest deploy log https://app.netlify.com/sites/hbs-docs/deploys/65410a301864650008dabb6d
😎 Deploy Preview https://deploy-preview-1002--hbs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@razonyang razonyang merged commit 5b2e093 into master Oct 31, 2023
5 checks passed
@razonyang razonyang deleted the patch-v0.120.0-social branch October 31, 2023 14:09
@wildserver
Copy link
Contributor

And I’m wondering why it gives me an error when generating the site WARN The social configuration and the social key in site configuration are deprecated. Use params.social instead.

And it turns out the contents of the file config/_default/social.yaml now lives in config/_default/params.yaml 😁

Still, sometimes you need to read about changes in the release https://github.com/razonyang/hugo-theme-bootstrap/releases/tag/v1.3.1 😁

@razonyang
Copy link
Owner Author

@wildserver To remove those warnings, you'll need to put the social settings in config/_default/params.yaml, and then delete the config/_default/social.yaml (which will not working anymore in future Hugo releases).

// config/_default/params.yaml 
social:
  twitter: foobar

@wildserver
Copy link
Contributor

@wildserverЧтобы удалить эти предупреждения, вам нужно будет установить настройки социальных сетей в config/_default/params.yaml, а затем удалить их config/_default/social.yaml(которые больше не будут работать в будущих выпусках Hugo).

// config/_default/params.yaml 
social:
  twitter: foobar

I've already done this.

I have version hugo v0.120.1 and everything worked before the update.

It’s better, of course, to fix it now, so as not to rack your brains later 😁

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

Successfully merging this pull request may close these issues.

None yet

2 participants