Skip to content

Commit

Permalink
blind commit (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sped0n authored Mar 10, 2024
1 parent 3ca0382 commit 982b081
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions layouts/partials/head/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,20 @@
"description": {{ . | safeHTML }},
{{- end -}}
{{- $image := .Site.Params.seo.image -}}
{{- with dict "Path" $image "Resources" .Resources | partial "function/resource.html" -}}
"image": {
"@type": "ImageObject",
"url": {{ .Permalink }},
"width": {{ .Width }},
"height": {{ .Height }}
},
{{- else -}}
{{- with $image -}}
"image": {{ . | absURL }},
{{- end -}}
{{- with .Site.Params.seo.image -}}
{{- $image := . -}}
{{- with dict "Path" $image "Resources" $.Resources | partial "function/resource.html" -}}
"image": {
"@type": "ImageObject",
"url": {{ .Permalink }},
"width": {{ .Width }},
"height": {{ .Height }}
},
{{- else -}}
{{- with $image -}}
"image": {{ . | absURL }},
{{- end -}}
{{- end -}}
{{- end -}}
{{- with .Site.Params.seo.thumbnailUrl -}}
{{- with dict "Path" . "Resources" $.Resources | partial "function/resource.html" -}}
Expand Down

0 comments on commit 982b081

Please sign in to comment.