diff --git a/themes/lumbung-theme/layouts/partials/shout_card.html b/themes/lumbung-theme/layouts/partials/shout_card.html index c3ee38b..7b29012 100644 --- a/themes/lumbung-theme/layouts/partials/shout_card.html +++ b/themes/lumbung-theme/layouts/partials/shout_card.html @@ -19,7 +19,8 @@ {{end}} {{ else if (.Resources.ByType "image") }} - {{ with (index (.Resources.ByType "image") 0) }} + {{/* Somehow the image resources are iterated in reverse, so we need to get the last one*/}} + {{ range last 1 (.Resources.ByType "image") }} {{ $img := . }} {{ $height := add .Height 0.0}} {{ $ratio := div $height .Width}}