From d360267d4e6db0eb1d3a4efddefcae45152df927 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 9 Nov 2024 11:46:39 +0530 Subject: [PATCH] Re-add support for cover images in OpenGraph 4a4d0c0 --- layouts/partials/templates/opengraph.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index c245e5bd..ca745ee1 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/templates/opengraph.html @@ -33,9 +33,17 @@ {{- end }} -{{- with partial "_funcs/get-page-images" . }} - {{- range . | first 6 }} - +{{- if .Params.cover.image -}} + {{- if (ne .Params.cover.relative true) }} + + {{- else}} + + {{- end}} +{{- else }} + {{- with partial "_funcs/get-page-images" . }} + {{- range . | first 6 }} + + {{- end }} {{- end }} {{- end }}