diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index 3e6565d7..c8b8067e 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 }},