From 89fc2917985d3da944af8116e101748267d66104 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Sun, 14 Jun 2020 23:17:37 +0800 Subject: Remove medium-zoom --- layouts/_default/_markup/render-image.html | 4 +++- layouts/partials/scripts-end.html | 1 - layouts/shortcodes/img-lazy.html | 32 ++++++++++++++++++++---------- layouts/shortcodes/img-nz-lazy.html | 25 ----------------------- layouts/shortcodes/img-nz.html | 7 ------- 5 files changed, 25 insertions(+), 44 deletions(-) delete mode 100644 layouts/shortcodes/img-nz-lazy.html delete 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 b9020c7..1b20943 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1 +1,3 @@ -{{ .Text }} \ No newline at end of file + + {{ .Text }} + \ No newline at end of file diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html index 024ee6f..e5426ad 100644 --- a/layouts/partials/scripts-end.html +++ b/layouts/partials/scripts-end.html @@ -4,7 +4,6 @@ - {{ with .Params.player }} diff --git a/layouts/shortcodes/img-lazy.html b/layouts/shortcodes/img-lazy.html index fef9bd3..e57b8fb 100644 --- a/layouts/shortcodes/img-lazy.html +++ b/layouts/shortcodes/img-lazy.html @@ -1,10 +1,22 @@ -{{ if len .Params | eq 2 }} -{{ index .Params 0 }} -{{ else if len .Params | eq 3 }}{{ if eq (index .Params 0) "row" }} -{{ index .Params 1 }} -{{ else if eq (index .Params 0) "col" }} -{{ index .Params 1 }} -{{ else }}{{ end }}{{ else }}{{ end }} \ No newline at end of file +{{- if len .Params | eq 2 -}} +

+ + {{ index .Params 0 }} + +

+{{- else if len .Params | eq 3 }}{{ if eq (index .Params 0) "row" -}} +

+ + {{ index .Params 1 }} + +

+{{- else if eq (index .Params 0) "col" -}} +

+ + {{ index .Params 1 }} + +

+{{- else -}}{{- end -}}{{- else -}}{{ end -}} \ No newline at end of file diff --git a/layouts/shortcodes/img-nz-lazy.html b/layouts/shortcodes/img-nz-lazy.html deleted file mode 100644 index bfdb26a..0000000 --- a/layouts/shortcodes/img-nz-lazy.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ if len .Params | eq 2 }} -{{ index .Params 0 }} -{{ else if len .Params | eq 3 }}{{ if eq (index .Params 0) "row" }} -{{ index .Params 1 }} -{{ else if eq (index .Params 0) "col" }} -{{ index .Params 1 }} -{{ else }} - - {{ index .Params 0 }} - -{{ end }}{{ else if len .Params | eq 4 }}{{ if eq (index .Params 0) "row" }} - - {{ index .Params 1 }} - -{{ else if eq (index .Params 0) "col" }} - - {{ index .Params 1 }} - -{{ else }}{{ end }}{{ else }}{{ end }} \ No newline at end of file diff --git a/layouts/shortcodes/img-nz.html b/layouts/shortcodes/img-nz.html deleted file mode 100644 index 1b4f791..0000000 --- a/layouts/shortcodes/img-nz.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ if (index .Params 2) }} - - {{ index .Params 0 }} - -{{ else }} -{{ index .Params 0 }} -{{ end }} \ No newline at end of file -- cgit v1.2.3