Skip to content

Commit

Permalink
Fix params.social.twitter deprecation (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Nov 2, 2023
1 parent 4d28649 commit 10c54fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ params:
images:
- "/assets/img/bootstrap-social.png"

social:
twitter: "getbootstrap"
social:
twitter: "getbootstrap"
2 changes: 1 addition & 1 deletion src/layouts/partials/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{{ template "_internal/twitter_cards.html" . -}}
{{- /* Manually add `twitter:creator` since Hugo's internal shortcode has some issues */ -}}
<meta name="twitter:creator" content="@{{ $author_twitter | default .Site.Social.twitter }}">
<meta name="twitter:creator" content="@{{ $author_twitter | default .Site.Params.twitter }}">

{{ template "_internal/opengraph.html" . -}}
{{- /* Manually add `og:image`'s dimensions since Hugo's internal shortcode doesn't do it */ -}}
Expand Down

0 comments on commit 10c54fd

Please sign in to comment.