diff options
author | mms <git@sapka.me> | 2024-11-13 22:16:29 +0100 |
---|---|---|
committer | mms <git@sapka.me> | 2024-11-13 22:16:29 +0100 |
commit | 0d5e133f6b36a30249a513fe3553597dab856b70 (patch) | |
tree | c076e189061520f936cc4379a4caeee51f08a49b /layouts | |
parent | 60d72ef7fdf147eb06951ca6f2617e4948f3f135 (diff) |
feat(blog): jcs
Diffstat (limited to 'layouts')
-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 4217f39..3718ee5 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -22,14 +22,14 @@ {{ end }} {{- $final2x_width := math.Mul $final1x_width 2}} -{{ $ext := "jpg" }} +{{ $ext := "png" }} {{ if eq .Params.transparency "yes" }} {{ $ext = "png" }} {{ end }} <!-- Generate 1x and 2x images --> -{{- $img1xproc := printf "%dx %s q90" $final1x_width $ext }} -{{- $img2xproc := printf "%dx %s q90" $final2x_width $ext }} +{{- $img1xproc := printf "%dx %s q95" $final1x_width $ext }} +{{- $img2xproc := printf "%dx %s q95" $final2x_width $ext }} {{- $img1x := $img.Resize $img1xproc }} {{- $img2x := $img.Resize $img2xproc }} |