From 7da818e69b76ff6764157da75137de69feadb7ce Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Tue, 7 Jul 2020 21:40:03 +0800 Subject: Fix medium-zoom --- layouts/_default/_markup/render-image.html | 4 +-- layouts/partials/head.html | 2 ++ layouts/partials/scripts-end.html | 8 ++--- layouts/shortcodes/img-lazy.html | 44 +++++++++++++-------------- layouts/shortcodes/img-nz-lazy.html | 49 ++++++++++++++++++++++++++++++ layouts/shortcodes/img-nz.html | 7 +++++ 6 files changed, 83 insertions(+), 31 deletions(-) create mode 100644 layouts/shortcodes/img-nz-lazy.html create mode 100644 layouts/shortcodes/img-nz.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 1b20943..397ff55 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,3 +1 @@ - - {{ .Text }} - \ No newline at end of file +{{ .Text }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1bcdf85..85f008e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -40,6 +40,8 @@ {{ with .Site.Params.googleAdsense }} {{ end}} + + {{ if .Params.player }} {{ end }} diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html index 37311b7..b945211 100644 --- a/layouts/partials/scripts-end.html +++ b/layouts/partials/scripts-end.html @@ -1,20 +1,17 @@ - - {{ if eq .Section "search" }} {{ else if eq .Section "archives" }} {{ else }} + - {{ end }} {{ with .Params.player }} -