diff --git a/themes/chosto/layouts/_default/summary.html b/themes/chosto/layouts/_default/summary.html index bfe63a1..a6480a2 100644 --- a/themes/chosto/layouts/_default/summary.html +++ b/themes/chosto/layouts/_default/summary.html @@ -1,17 +1,21 @@ -
+
{{ $imageURL := "https://bulma.io/images/placeholders/480x320.png" }} {{ with .Resources.GetMatch "top.jpg" }} {{ $image := .Fill "480x320 left" }} + {{/* #FIXME why do $image gets overwritten when $imageURL is set only once outside the conditional */}} + {{ if $.Params.incoming }}{{ $image = $image.Filter (images.Grayscale)}}{{ $imageURL = $image.Permalink }} + {{ else }} {{ $imageURL = $image.Permalink }} {{ end }} - Placeholder image + {{ end }} + Placeholder image