Skip to content

Commit f5c737f

Browse files
committed
Utilize page resources on the images page parameter on schema_json
1 parent df330a0 commit f5c737f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

layouts/partials/templates/schema_json.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
{{- else -}}
8181
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
8282
{{- end}}
83+
{{- else }}
84+
{{- $images := partial "partials/templates/_funcs/get-page-images" . -}}
85+
{{- with index $images 0 -}}
86+
"image": {{ .Permalink }}
87+
{{- end }}
8388
{{- end -}}
8489
"datePublished": {{ .PublishDate }},
8590
"dateModified": {{ .Lastmod }},

0 commit comments

Comments
 (0)