From 87b0f5b3bacb80e030305b3082f15957731feff6 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Mon, 7 Nov 2022 01:59:36 +0100 Subject: [PATCH] ...quite. But now, I'm rly happy --- themes/chosto/layouts/_default/summary.html | 43 +++++++++++++-------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/themes/chosto/layouts/_default/summary.html b/themes/chosto/layouts/_default/summary.html index 5ffa370..768a05d 100644 --- a/themes/chosto/layouts/_default/summary.html +++ b/themes/chosto/layouts/_default/summary.html @@ -3,8 +3,8 @@
{{ $imageURL := "https://bulma.io/images/placeholders/480x320.png" }} {{ with .Resources.GetMatch "top.jpg" }} - {{ $image := .Fill "480x320 left" }} - {{ $imageURL = $image.Permalink }} + {{ $image := .Fill "480x320 left" }} + {{ $imageURL = $image.Permalink }} {{ end }} Placeholder image
@@ -40,23 +40,34 @@ {{ if (isset .Params "summary" )}} - {{ .Params.summary }} + {{ .Params.summary }} {{ else }} - {{ .Content | plainify | safeHTML | truncate 300 "..." }} + {{ .Content | plainify | safeHTML | truncate 300 "..." }} {{ end }} - + + + \ No newline at end of file