Example of integration of picture partial

This commit is contained in:
stereobooster
2023-10-31 17:53:15 +01:00
parent 16edb5da3b
commit c237e04744
6 changed files with 126 additions and 98 deletions
+7
View File
@@ -0,0 +1,7 @@
{{ $img := .img }}
{{ $alt := .alt }}
{{ $class := .class }}
{{ $lazy := $.Page.Site.Params.enableImageLazyLoading | default true }}
{{ $webp := $.Page.Site.Params.enableImageWebp | default true }}
{{ $lqip := false }}
{{ partial "picture.html" (dict "img" $img "alt" $alt "class" $class "lazy" $lazy "webp" $webp "lqip" $lqip) }}