summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/image.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-08-31 19:22:11 +0200
committermms <michal@sapka.me>2024-08-31 19:22:11 +0200
commit091aa067d036ab60eb7d627d1997572daebaa310 (patch)
treed975c020497928a05ee30c257cfc88dc943cae76 /layouts/shortcodes/image.html
parentbcf8aee086ae1c9e66a8ca461bf0912cda5d701d (diff)
feat(blog): rrc
Diffstat (limited to 'layouts/shortcodes/image.html')
-rw-r--r--layouts/shortcodes/image.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html
index 1bc0619..ee2f4a6 100644
--- a/layouts/shortcodes/image.html
+++ b/layouts/shortcodes/image.html
@@ -24,13 +24,13 @@
{{- $final2x_width := math.Mul $final1x_width 2}}
<!-- Generate 1x and 2x images -->
-{{- $img1xproc := printf "%dx webp q90" $final1x_width }}
-{{- $img2xproc := printf "%dx webp q90" $final2x_width }}
+{{- $img1xproc := printf "%dx jpg q90" $final1x_width }}
+{{- $img2xproc := printf "%dx jpg q90" $final2x_width }}
{{- $img1x := $img.Resize $img1xproc }}
{{- $img2x := $img.Resize $img2xproc }}
<!-- Generate raw, optimized img -->
-{{- $imgproc := printf "x%d webp q90" $raw_width }}
+{{- $imgproc := printf "x%d jpg q90" $raw_width }}
{{- $img_raw := $img.Resize $imgproc }}
<!-- Resulting HTML -->