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 }}