diff --git a/layouts/partials/photos/thumbnail.html b/layouts/partials/photos/thumbnail.html index 12f8224..dbd9e1f 100644 --- a/layouts/partials/photos/thumbnail.html +++ b/layouts/partials/photos/thumbnail.html @@ -9,9 +9,18 @@ {{ $orientation := partial "images/orientation_angle.html" $thumbnailResource }} {{ $targetWidth := 0 }} -{{ if isset . "Width" }}{{ $targetWidth = .Width }}{{ else }}{{ $targetWidth = $thumbnailResource.Width }}{{ end }} +{{ if isset . "Width" }} + {{ $targetWidth = .Width }} +{{ else }} + {{ $targetWidth = $thumbnailResource.Width }} +{{ end }} + {{ $targetHeight := 0 }} -{{ if isset . "Height" }}{{ $targetHeight = .Height }}{{ else }}{{ $targetHeight = $thumbnailResource.Height }}{{ end }} +{{ if isset . "Height" }} + {{ $targetHeight = .Height }} +{{ else }} + {{ $targetHeight = $thumbnailResource.Height }} +{{ end }} {{ $thumbnail := false }} {{ if not (and (eq $orientation 0)