mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-31 06:48:24 -04:00
Utilize page resources on the images page parameter on schema_json
This commit is contained in:
parent
df330a05b5
commit
f5c737f872
1 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,11 @@
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
|
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
{{- else }}
|
||||||
|
{{- $images := partial "partials/templates/_funcs/get-page-images" . -}}
|
||||||
|
{{- with index $images 0 -}}
|
||||||
|
"image": {{ .Permalink }}
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
"datePublished": {{ .PublishDate }},
|
"datePublished": {{ .PublishDate }},
|
||||||
"dateModified": {{ .Lastmod }},
|
"dateModified": {{ .Lastmod }},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue