limita comunque l'altezza

This commit is contained in:
Paolo Asperti 2024-07-14 09:21:47 +02:00
parent 2b3da2c569
commit ffe324bca1
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -29,7 +29,7 @@
{{- $img = $img.Resize (printf "x%d" $maxHeight) -}} {{- $img = $img.Resize (printf "x%d" $maxHeight) -}}
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.image_alt }}" style="width: {{ $img.Width }}px; max-height: {{ $maxHeight }}px;" /> <img src="{{ $img.RelPermalink }}" alt="{{ .Params.image_alt }}" style="width: {{ $img.Width }}px; max-height: {{ $maxHeight }}px;" />
{{ else }} {{ else }}
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.image_alt }}" /> <img src="{{ $img.RelPermalink }}" alt="{{ .Params.image_alt }}" style="max-height: {{ $maxHeight }}px;" />
{{ end }} {{ end }}
</span> </span>
{{ end }} {{ end }}