Skip to content

Commit

Permalink
Utilize page resources on the images page parameter on schema_json
Browse files Browse the repository at this point in the history
  • Loading branch information
adityatelange committed Mar 10, 2024
1 parent df330a0 commit f5c737f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layouts/partials/templates/schema_json.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }},
Expand Down

0 comments on commit f5c737f

Please sign in to comment.