From afa25640c336939cb77a4cf7f140db1f3025177d Mon Sep 17 00:00:00 2001 From: stereobooster Date: Wed, 13 Sep 2023 09:46:11 +0200 Subject: [PATCH] add configuration option --- exampleSite/config/_default/params.toml | 1 + layouts/partials/picture.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 }}