Bump the quality of image renders

This commit is contained in:
2023-11-07 21:54:58 +00:00
parent 8ad5538cdf
commit 3c4ef15955
5 changed files with 11 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{{ $img := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) }}
{{ $width := .Get "width" }}
{{ $img = $img.Resize (print (default "1256x" $width) " jpg") }}
{{ $img = $img.Resize (print (default "1264x" $width) " webp") }}
{{ $title := .Get "title" }}
{{ $class := .Get "class" }}
<figure class="image{{ if $class }} {{ $class }}{{ end }}">