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-lazy.html | 27 ++++---------------
layouts/shortcodes/img-nz-lazy.html | 54 ++++---------------------------------
layouts/shortcodes/img-nz.html | 10 +++----
3 files changed, 14 insertions(+), 77 deletions(-)
(limited to 'layouts/shortcodes')
diff --git a/layouts/shortcodes/img-lazy.html b/layouts/shortcodes/img-lazy.html
index bac255b..eed9b0e 100644
--- a/layouts/shortcodes/img-lazy.html
+++ b/layouts/shortcodes/img-lazy.html
@@ -1,22 +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 }}{{ end }}
+{{- if len .Params | eq 3 -}}
+
-