From 10c54fdc439d495dc3643b01605b3b37a14048f3 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 2 Nov 2023 10:42:19 +0200 Subject: [PATCH] Fix `params.social.twitter` deprecation (#407) --- hugo.yml | 4 ++-- src/layouts/partials/social.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hugo.yml b/hugo.yml index 3f1515823..7d047ffec 100644 --- a/hugo.yml +++ b/hugo.yml @@ -98,5 +98,5 @@ params: images: - "/assets/img/bootstrap-social.png" -social: - twitter: "getbootstrap" + social: + twitter: "getbootstrap" diff --git a/src/layouts/partials/social.html b/src/layouts/partials/social.html index 3a5f87ac3..db161712f 100644 --- a/src/layouts/partials/social.html +++ b/src/layouts/partials/social.html @@ -10,7 +10,7 @@ {{ template "_internal/twitter_cards.html" . -}} {{- /* Manually add `twitter:creator` since Hugo's internal shortcode has some issues */ -}} - + {{ template "_internal/opengraph.html" . -}} {{- /* Manually add `og:image`'s dimensions since Hugo's internal shortcode doesn't do it */ -}}