Utilize page resources on the images page parameter on schema_json

This commit is contained in:
Aditya Telange 2024-03-10 13:00:33 +05:30
parent df330a05b5
commit f5c737f872
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 5 additions and 0 deletions

View File

@ -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 }},