From 46d54db1150eb0825cf162e4fbca16c0c0042cf1 Mon Sep 17 00:00:00 2001 From: Chun-Yu Chen Date: Thu, 26 Dec 2024 14:57:42 +0800 Subject: [PATCH] Fix .Site.Social error https://github.com/adityatelange/hugo-PaperMod/issues/1573 --- layouts/partials/opengraph.html | 2 +- layouts/partials/twitter_cards.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index 23aa06a..dcc669b 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -46,4 +46,4 @@ {{- end }}{{ end }} {{- /* Facebook Page Admin ID for Domain Insights */}} -{{- with .Site.Social.facebook_admin }}{{ end }} +{{- with .Site.Params.Social.facebook_admin }}{{ end }} diff --git a/layouts/partials/twitter_cards.html b/layouts/partials/twitter_cards.html index 927094c..0983d36 100644 --- a/layouts/partials/twitter_cards.html +++ b/layouts/partials/twitter_cards.html @@ -9,7 +9,7 @@ -{{ with with .Site.Params.Social.twitter -}} +{{ with .Site.Params.Social.twitter -}} {{ end -}} {{ range .Site.Authors }}