mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 10:22:21 +00:00
Bump the quality of image renders
This commit is contained in:
@@ -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 }}">
|
||||
|
||||
Reference in New Issue
Block a user