aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/post.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-07 02:37:36 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-07 02:37:36 +0200
commit5e20b8d99cd4591cc9d066370139d210d673864c (patch)
treea17021b68f31b3d5ccb488e057dc7aa7942ce518 /layouts/partials/post.html
parentcd710363419f5144062707e8cd170278052924fa (diff)
downloadhugo-minimalist-theme-5e20b8d99cd4591cc9d066370139d210d673864c.tar.gz
hugo-minimalist-theme-5e20b8d99cd4591cc9d066370139d210d673864c.tar.bz2
hugo-minimalist-theme-5e20b8d99cd4591cc9d066370139d210d673864c.zip
metadata for social media
I must here also change how the page image is stored
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r--layouts/partials/post.html5
1 files changed, 2 insertions, 3 deletions
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 @@
<a class="db no-underline dim" href= "{{ .RelPermalink }}">
<h3 class="f3 baskerville mt0 lh-title near-black">{{.Title }}</h3>
<div class="cf">
- {{ 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) }}
<div class="fl-ns mb4 mb0-ns pr3-ns">
<img src="{{ $image.RelPermalink }}" class="db center">
</div>