fix(images): use the right resource loader function and others things

This commit is contained in:
Matthieu Bessat 2023-07-10 17:44:29 +02:00
parent 93177a4c9a
commit aa822b6f2e
3 changed files with 19 additions and 17 deletions

View file

@ -37,7 +37,7 @@
{{- end -}}
{{- end -}}
{{ $image := partialCached "helpers/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" }}
{{ $image := partial "helpers/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" }}
{{ if $image.exists }}
<meta property="og:image" content="{{ absURL $image.permalink }}" />
{{- end -}}