Skip to content

Commit

Permalink
use new process method
Browse files Browse the repository at this point in the history
  • Loading branch information
HidegonSan committed Nov 8, 2023
1 parent cfb4a77 commit 728855d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions layouts/_default/_markup/render-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

{{- $originalImage := .Page.Resources.GetMatch .Destination -}}
{{- if $originalImage -}}
{{ $webpImage := $originalImage.Resize (printf "%dx%d webp q75" $originalImage.Width $originalImage.Height) }}

{{ $webpImage := $originalImage | images.Filter
(images.Process "webp q75")
}}
<span class="image_modal_md_image">
<picture>
<source srcset="{{ $webpImage.RelPermalink }}" type="image/webp">
Expand Down

0 comments on commit 728855d

Please sign in to comment.