From a43b353ca3e2d923ca8f0cdd1aeab70e5b1313a4 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Sat, 19 Sep 2020 14:15:35 +0800
Subject: new: lazyload image shortcodes
---
layouts/shortcodes/img-nz-lazy.html | 54 ++++---------------------------------
1 file changed, 5 insertions(+), 49 deletions(-)
(limited to 'layouts/shortcodes/img-nz-lazy.html')
diff --git a/layouts/shortcodes/img-nz-lazy.html b/layouts/shortcodes/img-nz-lazy.html
index 8a46329..bba88b6 100644
--- a/layouts/shortcodes/img-nz-lazy.html
+++ b/layouts/shortcodes/img-nz-lazy.html
@@ -1,49 +1,5 @@
-{{ if len .Params | eq 2 }}
-
-{{ else if len .Params | eq 3 }}{{ if eq (index .Params 0) "row" }}
-
-{{ else if eq (index .Params 0) "col" }}
-
-{{ else }}
-
-
-
-{{ end }}{{ else if len .Params | eq 4 }}{{ if eq (index .Params 0) "row" }}
-
-
-
-{{ else if eq (index .Params 0) "col" }}
-
-
-
-{{ else }}{{ end }}{{ else }}{{ end }}
+{{- if len .Params | eq 3 -}}
+