From e0b2683ef9889f9742053ef66b11a4643104ea82 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Tue, 8 Oct 2024 08:46:06 -0700 Subject: [PATCH] Remove the images/orientation_angle partial This partial moved to the image-utilities theme --- .../partials/images/orientation_angle.html | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 themes/platters/layouts/partials/images/orientation_angle.html diff --git a/themes/platters/layouts/partials/images/orientation_angle.html b/themes/platters/layouts/partials/images/orientation_angle.html deleted file mode 100644 index 07f73e6..0000000 --- a/themes/platters/layouts/partials/images/orientation_angle.html +++ /dev/null @@ -1,30 +0,0 @@ -{{ $orientation := 0 }} - -{{ with .Params.orientation }} - {{ if strings.Contains . "horizontal" }} - {{ $orientation = 0 }} - {{ else if strings.Contains . "rotate180" }} - {{ $orientation = 180 }} - {{ else if strings.Contains . "rotate90" }} - {{ $orientation = 90 }} - {{ else if strings.Contains . "rotate270" }} - {{ $orientation = 270 }} - {{ end }} -{{ else }} - {{ with (int .Exif.Tags.Orientation) }} - {{/* EXIF orientation is specified as an integer corresponding to a 90ยบ rotation. */}} - {{ if in (slice 1 2) . }} - {{ $orientation = 0 }} - {{ else if in (slice 3 4) . }} - {{ $orientation = 180 }} - {{ else if in (slice 5 6) . }} - {{ $orientation = 90 }} - {{ else if in (slice 7 8) . }} - {{ $orientation = 270 }} - {{ end }} - {{ else }} - {{ warnf "Image missing orientation: %s" . }} - {{ end }} -{{ end }} - -{{ return $orientation }}