From 1391ebe04ba74260e8de2930b9d48b9323cda8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B8rn=20Pedersen?= <113333557+torbjornbp@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:25:53 +0100 Subject: [PATCH] feat: support page bundle images in OpenGraph metadata (#892) * Support page bundle images in OpenGraph metadata * Fix file permissions --------- Co-authored-by: Xin <5097752+imfing@users.noreply.github.com> --- layouts/_partials/opengraph.html | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/layouts/_partials/opengraph.html b/layouts/_partials/opengraph.html index e60f942..140f248 100644 --- a/layouts/_partials/opengraph.html +++ b/layouts/_partials/opengraph.html @@ -22,20 +22,22 @@ {{- with $.Params.images -}} -{{- range first 6 . }} - -{{ end -}} + {{- range first 6 . }} + {{- with $.Resources.GetMatch . }} + + + {{- else }} + + + {{- end }} + {{- end }} {{- else -}} -{{- $featured := "" }} -{{- with $featured -}} - -{{- else -}} -{{- with $.Site.Params.images }} - -{{ end -}} -{{- end -}} + {{- with $.Site.Params.images }} + + {{- end }} {{- end -}} + {{- if .IsPage }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}