From ce27c4e6a15996449d04a49711f5fc5124291cdd Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 12 Dec 2020 14:59:08 +0200 Subject: [PATCH] layouts/partials/featured.html: Fix logic The logic was incorrect here, which caused some images to be missed because some images have EXIF data but do not have orientation 8. --- layouts/partials/featured.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/featured.html b/layouts/partials/featured.html index 2a94f52..c1a0a13 100644 --- a/layouts/partials/featured.html +++ b/layouts/partials/featured.html @@ -38,10 +38,12 @@ {{/* Rotate image before cropping because Hugo's "Smart" cropping crops differently if we do it at the same time as .Fill with a rotation) and use 2x dimensions to keep the thumbnail crisp */}} {{ $RotatedImage := $image.Resize "480x600 r90" }} + {{ else }} + + {{ end }} {{ else }} {{ end }} - {{ end }} {{ end }}