From 15c9ac2bc9a96bbc024ad475bda4a58c09944d55 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 17 Jul 2022 19:17:50 +0200 Subject: Move social options in the same place --- layouts/partials/templates/twitter_cards.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'layouts/partials/templates/twitter_cards.html') diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html index 40a6c3d..d2ef50a 100644 --- a/layouts/partials/templates/twitter_cards.html +++ b/layouts/partials/templates/twitter_cards.html @@ -3,17 +3,16 @@ {{- /* Twitter username for the website used in the card footer */}} - {{- with site.Social.twitter }} + {{- with site.Params.social.twitter }} {{- end }} - {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) -}} - {{- if and .IsPage .Params.featuredImage }} {{- $image := .Resources.GetMatch .Params.featuredImage }} - {{- else }} + {{- else -}} + {{- $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }} {{- end -}} -- cgit v1.2.3