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/partials/post.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'layouts/partials/post.html') diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 19352e6..53aa735 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -2,9 +2,8 @@

{{.Title }}

- {{ if isset .Params "image" }} - {{ $image := resources.Get .Params.image }} - {{ $image := $image.Resize (default "320x" .Params.thumbnail_size) }} + {{ with resources.Get (index .Params.images 0) | default (resources.Get .Params.image) }} + {{ $image := .Resize (default "320x" .Params.thumbnail_size) }}
-- cgit v1.2.3