diff options
author | mms <michal@sapka.me> | 2024-08-31 19:22:11 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-08-31 19:22:11 +0200 |
commit | 091aa067d036ab60eb7d627d1997572daebaa310 (patch) | |
tree | d975c020497928a05ee30c257cfc88dc943cae76 /layouts/shortcodes/image.html | |
parent | bcf8aee086ae1c9e66a8ca461bf0912cda5d701d (diff) |
feat(blog): rrc
Diffstat (limited to 'layouts/shortcodes/image.html')
-rw-r--r-- | layouts/shortcodes/image.html | 6 |
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 --> |