diff --git a/layouts/partials/picture.html b/layouts/partials/picture.html index 752f84a8..6a915964 100644 --- a/layouts/partials/picture.html +++ b/layouts/partials/picture.html @@ -81,6 +81,12 @@ type="image/webp" /> {{ end }} + {{ with $img }} + {{ $orientation := 1 }} + {{ with .Exif }} + {{ $orientation = .Tags.Orientation }} + {{ end }} + {{ if eq $orientation 1 }} + {{ else if (eq $orientation 8) }} + {{ . }} + {{ end }} + {{ end }} {{ end }} {{ end }} \ No newline at end of file