diff options
author | mms <michal@sapka.me> | 2024-06-05 23:27:55 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-06-05 23:27:55 +0200 |
commit | fa60345484ab7da2da8111b344eeb129c3a255a0 (patch) | |
tree | 92042253397c092e3479b2b9c36affbd4fd7216e /layouts | |
parent | 043eecf580663c32bd98ab0b3598592712e59205 (diff) |
feat: tidy images
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/image.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html index 441c2d1..0bc0d58 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -18,8 +18,8 @@ {{- $final2x_width := math.Mul $final1x_width 2}} <!-- Generate 1x and 2x images --> -{{- $img1xproc := printf "x%d webp q90" $final1x_width }} -{{- $img2xproc := printf "x%d webp q90" $final2x_width }} +{{- $img1xproc := printf "%dx webp q90" $final1x_width }} +{{- $img2xproc := printf "%dx webp q90" $final2x_width }} {{- $img1x := $img.Resize $img1xproc }} {{- $img2x := $img.Resize $img2xproc }} |