From f5c737f872ae1db688641dcaf0eaa538958b57a6 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 10 Mar 2024 13:00:33 +0530 Subject: [PATCH] Utilize page resources on the images page parameter on schema_json --- layouts/partials/templates/schema_json.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index 3e6565d..c8b8067 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -80,6 +80,11 @@ {{- else -}} {{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}, {{- end}} + {{- else }} + {{- $images := partial "partials/templates/_funcs/get-page-images" . -}} + {{- with index $images 0 -}} + "image": {{ .Permalink }} + {{- end }} {{- end -}} "datePublished": {{ .PublishDate }}, "dateModified": {{ .Lastmod }},