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/shortcodes/img-lazy.html | 32 ++++++++++++++++++++++----------
 1 file changed, 22 insertions(+), 10 deletions(-)

(limited to 'layouts/shortcodes/img-lazy.html')

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 }}
-<img class="lazyload img-zoomable" src="{{ .Site.Params.lazyPlaceholder | relURL }}" data-src="{{ index .Params 1 }}"
-     alt="{{ index .Params 0 }}" />
-{{ else if len .Params | eq 3 }}{{ if eq (index .Params 0) "row" }}
-<img class="lazyload img-zoomable" src="{{ .Site.Params.lazyPlaceholderRow | relURL }}" data-src="{{ index .Params 2 }}"
-     alt="{{ index .Params 1 }}" />
-{{ else if eq (index .Params 0) "col" }}
-<img class="lazyload img-zoomable" src="{{ .Site.Params.lazyPlaceholderCol | relURL }}" data-src="{{ index .Params 2 }}"
-     alt="{{ index .Params 1 }}" />
-{{ else }}{{ end }}{{ else }}{{ end }}
\ No newline at end of file
+{{- if len .Params | eq 2 -}}
+<p>
+     <a href="{{ index .Params 1 | safeURL }}" target="_blank">
+          <img class="lazyload" src="{{ .Site.Params.lazyPlaceholder | relURL }}"
+               data-src="{{ index .Params 1 | safeURL }}" alt="{{ index .Params 0 }}" />
+     </a>
+</p>
+{{- else if len .Params | eq 3 }}{{ if eq (index .Params 0) "row" -}}
+<p>
+     <a href="{{ index .Params 2 | safeURL }}" target="_blank">
+          <img class="lazyload" src="{{ .Site.Params.lazyPlaceholderRow | relURL }}"
+               data-src="{{ index .Params 2 | safeURL }}" alt="{{ index .Params 1 }}" />
+     </a>
+</p>
+{{- else if eq (index .Params 0) "col" -}}
+<p>
+     <a href="{{ index .Params 2 | safeURL }}" target="_blank">
+          <img class="lazyload" src="{{ .Site.Params.lazyPlaceholderCol | relURL }}"
+               data-src="{{ index .Params 2 | safeURL }}" alt="{{ index .Params 1 }}" />
+     </a>
+</p>
+{{- else -}}{{- end -}}{{- else -}}{{ end -}}
\ No newline at end of file
-- 
cgit v1.2.3