From 2c15f4495668f953709489133073ab2e7fa2efa8 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 22 Apr 2020 00:30:29 +0800 Subject: Change lazyload js --- layouts/partials/head.html | 9 +++------ layouts/partials/scripts.html | 10 +--------- layouts/shortcodes/lazyimg-col.html | 2 +- layouts/shortcodes/lazyimg-row.html | 2 +- layouts/shortcodes/lazyimg.html | 2 +- 5 files changed, 7 insertions(+), 18 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 658030e..f34ea88 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -30,16 +30,13 @@ + + + {{ if .Site.Params.webpChecker }} {{ $webp := resources.Get "js/modernizr-webp.min.js" }} {{ end }} -{{ with .Site.Params.cdnIntersectionObserverJS }} - -{{ end }} - - - {{ if or .Params.math .Site.Params.math }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index d734202..79befb5 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -86,12 +86,4 @@ }); }); -{{ end }} - - \ No newline at end of file +{{ end }} \ No newline at end of file diff --git a/layouts/shortcodes/lazyimg-col.html b/layouts/shortcodes/lazyimg-col.html index 0192ba5..0067762 100644 --- a/layouts/shortcodes/lazyimg-col.html +++ b/layouts/shortcodes/lazyimg-col.html @@ -1 +1 @@ -

{{ index .Params 0 }}

\ No newline at end of file +

{{ index .Params 0 }}

\ No newline at end of file diff --git a/layouts/shortcodes/lazyimg-row.html b/layouts/shortcodes/lazyimg-row.html index dd07f93..1e76de0 100644 --- a/layouts/shortcodes/lazyimg-row.html +++ b/layouts/shortcodes/lazyimg-row.html @@ -1 +1 @@ -

{{ index .Params 0 }}

\ No newline at end of file +

{{ index .Params 0 }}

\ No newline at end of file diff --git a/layouts/shortcodes/lazyimg.html b/layouts/shortcodes/lazyimg.html index a23a15e..468a901 100644 --- a/layouts/shortcodes/lazyimg.html +++ b/layouts/shortcodes/lazyimg.html @@ -1 +1 @@ -

{{ index .Params 0 }}

\ No newline at end of file +

{{ index .Params 0 }}

\ No newline at end of file -- cgit v1.2.3