From 40e01c083e6fdeb08207ae43091984fd402e0141 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 22 Feb 2021 22:36:15 +0000 Subject: [PATCH] fix: previous commit - migrate lazysizes data-src to native src --- wowchemy/layouts/partials/li_card.html | 4 +--- wowchemy/layouts/partials/li_compact.html | 4 +--- wowchemy/layouts/partials/portfolio_li_card.html | 4 +--- wowchemy/layouts/partials/portfolio_li_showcase.html | 4 +--- wowchemy/layouts/shortcodes/gallery.html | 2 +- 5 files changed, 5 insertions(+), 13 deletions(-) diff --git a/wowchemy/layouts/partials/li_card.html b/wowchemy/layouts/partials/li_card.html index 8f02edc1..b51ec077 100644 --- a/wowchemy/layouts/partials/li_card.html +++ b/wowchemy/layouts/partials/li_card.html @@ -37,11 +37,9 @@ {{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }} {{ $anchor := $item.Params.image.focal_point | default "Smart" }} {{ with $resource }} - {{ $filters := slice (images.GaussianBlur 21) (images.Pixelate 8) }} {{ $image := .Fill (printf "808x455 %s" $anchor) }} - {{ $image_lq := (.Fill (printf "808x455 %s q1" $anchor)).Filter $filters }} -
{{ $item.Title }}
+
{{ $item.Title }}
{{end}} diff --git a/wowchemy/layouts/partials/li_compact.html b/wowchemy/layouts/partials/li_compact.html index c115f7f8..dfae14c8 100644 --- a/wowchemy/layouts/partials/li_compact.html +++ b/wowchemy/layouts/partials/li_compact.html @@ -76,11 +76,9 @@
{{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }} {{ with $resource }} - {{ $filters := slice (images.GaussianBlur 21) (images.Pixelate 8) }} {{ $image := .Resize "150x" }} - {{ $image_lq := (.Resize "150x q1").Filter $filters }} - {{ $item.Title }} + {{ $item.Title }} {{end}}
diff --git a/wowchemy/layouts/partials/portfolio_li_card.html b/wowchemy/layouts/partials/portfolio_li_card.html index ee1de482..b1e12cf8 100644 --- a/wowchemy/layouts/partials/portfolio_li_card.html +++ b/wowchemy/layouts/partials/portfolio_li_card.html @@ -20,11 +20,9 @@
{{ with $resource }} - {{ $filters := slice (images.GaussianBlur 21) (images.Pixelate 8) }} {{ $image := .Resize "550x" }} - {{ $image_lq := (.Resize "550x q1").Filter $filters }} - {{ $item.Title }} + {{ $item.Title }} {{ end }}
diff --git a/wowchemy/layouts/partials/portfolio_li_showcase.html b/wowchemy/layouts/partials/portfolio_li_showcase.html index 6a65df26..ff654482 100644 --- a/wowchemy/layouts/partials/portfolio_li_showcase.html +++ b/wowchemy/layouts/partials/portfolio_li_showcase.html @@ -51,11 +51,9 @@
{{ $resource := ($item.Resources.ByType "image").GetMatch "*featured*" }} {{ with $resource }} - {{ $filters := slice (images.GaussianBlur 21) (images.Pixelate 8) }} {{ $image := .Resize "540x" }} - {{ $image_lq := (.Resize "540x q1").Filter $filters }} {{if $do_link}}{{end}} - {{ $item.Title }} + {{ $item.Title }} {{if $do_link}}{{end}} {{end}}
diff --git a/wowchemy/layouts/shortcodes/gallery.html b/wowchemy/layouts/shortcodes/gallery.html index 1ff9ac92..e98d1233 100644 --- a/wowchemy/layouts/shortcodes/gallery.html +++ b/wowchemy/layouts/shortcodes/gallery.html @@ -29,7 +29,7 @@ {{ end }} {{ end }} - {{ plainify $caption | default $filename }}{{/* Width & height (or low res src) required for lazy loading. */}} + {{ plainify $caption | default $filename }}{{/* Width & height (or low res src) required for lazy loading. */}} {{end}}