diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 10baff41..07d60bc9 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -13,6 +13,7 @@ enableSearch = true enableCodeCopy = true enableImageLazyLoading = true enableWebp = true +enableLqip = true # robots = "" fingerprintAlgorithm = "sha256" diff --git a/layouts/partials/picture.html b/layouts/partials/picture.html index a8a26819..6e50973b 100644 --- a/layouts/partials/picture.html +++ b/layouts/partials/picture.html @@ -4,6 +4,7 @@ {{ $lazyLoad := .context.Page.Site.Params.enableImageLazyLoading | default true }} {{ $webp := .context.Page.Site.Params.enableWebp | default true }} +{{ $lqip := .context.Page.Site.Params.enableLqip | default true }} {{ if findRE "^https?" $url.Scheme }}