From 5e20b8d99cd4591cc9d066370139d210d673864c Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Thu, 7 Sep 2023 02:37:36 +0200 Subject: metadata for social media I must here also change how the page image is stored --- layouts/_default/single.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d12dd07..6538e4f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,12 +8,11 @@

{{ . }}

{{end}} - {{ if isset .Params "image" }} - {{ $image := resources.Get .Params.image }} - {{ $image := $image.Fill (default "400x400" .Params.image_size) }} + {{ with resources.Get (index .Params.images 0) | default (resources.Get .Params.image) }} + {{ $image := .Fill (default "400x400" $.Params.image_size) }}
{{ .Title }} - {{ with .Params.caption }} + {{ with $.Params.caption }} {{ .text }} -- cgit v1.2.3