summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/image.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/image.html')
-rw-r--r--layouts/shortcodes/image.html4
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 }}