mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-18 16:48:28 -04:00
Example of integration of picture partial
This commit is contained in:
@@ -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) }}
|
||||
Reference in New Issue
Block a user