From 6f3ab760f97821659eab0d097fabd03f6f38b76b Mon Sep 17 00:00:00 2001 From: powerfullz <61956140+powerfullz@users.noreply.github.com> Date: Sun, 26 Apr 2026 19:14:34 +0800 Subject: [PATCH] fix: correct permalink casing for OpenGraph and Twitter image tags (#1324) --- layouts/_partials/head/opengraph/provider/base.html | 2 +- layouts/_partials/head/opengraph/provider/twitter.html | 2 +- layouts/rss.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_partials/head/opengraph/provider/base.html b/layouts/_partials/head/opengraph/provider/base.html index 358a636..9fa2ab0 100644 --- a/layouts/_partials/head/opengraph/provider/base.html +++ b/layouts/_partials/head/opengraph/provider/base.html @@ -39,5 +39,5 @@ {{ $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) }} {{- if $image -}} - + {{- end -}} \ No newline at end of file diff --git a/layouts/_partials/head/opengraph/provider/twitter.html b/layouts/_partials/head/opengraph/provider/twitter.html index 1d9b650..111d266 100644 --- a/layouts/_partials/head/opengraph/provider/twitter.html +++ b/layouts/_partials/head/opengraph/provider/twitter.html @@ -12,5 +12,5 @@ {{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) -}} {{- if $image -}} - + {{- end -}} \ No newline at end of file diff --git a/layouts/rss.xml b/layouts/rss.xml index 6b65a08..1f13ac6 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -52,7 +52,7 @@ {{- end -}} {{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) -}} {{- if $image -}} - {{- $imgTag := printf "\"Featured" ($image.permalink | absURL) .Title -}} + {{- $imgTag := printf "\"Featured" ($image.Permalink | absURL) .Title -}} {{- $content = printf "%s%s" $imgTag $content -}} {{- end -}} {{- $content | transform.XMLEscape | safeHTML -}}