From cf5dba947650cfe658c049d3bc66765365cd1be1 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 22 Feb 2025 21:19:42 -0800 Subject: [PATCH] Organize --- layouts/partials/paige/image.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/partials/paige/image.html b/layouts/partials/paige/image.html index 46c994fd..594fe8dc 100644 --- a/layouts/partials/paige/image.html +++ b/layouts/partials/paige/image.html @@ -6,6 +6,8 @@ {{ $densities := $params.densities }} {{ $fetchPriority := $params.fetchpriority }} {{ $height := $params.height }} +{{ $intrinsicHeight := "" }} +{{ $intrinsicWidth := "" }} {{ $link := $params.link }} {{ $linked := $params.linked }} {{ $loading := $params.loading }} @@ -21,9 +23,6 @@ {{ $title := $params.title }} {{ $width := $params.width }} -{{ $intrinsicHeight := "" }} -{{ $intrinsicWidth := "" }} - {{ if and (or $height $maxHeight) (not (or $maxWidth $width)) }} {{ $width = "auto" }} {{ end }}