Fix img ratio

This commit is contained in:
Gabriel Augendre 2023-05-21 23:37:30 +02:00
parent 8c0989aaf0
commit f68204babd

View file

@ -9,6 +9,6 @@
{{ $resize := printf "%s%s" (.Get "resize" | default "720x webp Lanczos ") $resizeAdd }}
{{ $image := $origImage.Resize $resize }}
<a href="{{ $origImage.RelPermalink }}">
<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" alt='{{ .Get "alt" }}'>
<img src="{{ $image.RelPermalink }}" alt='{{ .Get "alt" }}'>
</a>
{{ end }}