Skip to content

Commit

Permalink
Make picture shortcode support lazt option
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheberle committed Sep 13, 2024
1 parent e5a93aa commit 7e6114b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picture/shortcode/picture.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- $scratch := newScratch -}}
{{- range $key := (slice "img" "imgdark" "svg" "svgdark" "class" "alt" "title" "width" "height" "action" "disablewebp" "versions" "anchor" "twaspect" "x-data" "@click" "x-on:click" "thumbnail" "watermark" "preload") -}}
{{- range $key := (slice "img" "imgdark" "svg" "svgdark" "class" "alt" "title" "width" "height" "action" "disablewebp" "versions" "anchor" "twaspect" "x-data" "@click" "x-on:click" "thumbnail" "watermark" "preload" "lazy") -}}
{{- with ($.Get $key) -}}
{{- $scratch.SetInMap "picture" $key . -}}
{{- end -}}
Expand Down

0 comments on commit 7e6114b

Please sign in to comment.