From dfb6e1f80754c1c8f2d4d332c5292319f008a67b Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Wed, 27 May 2020 22:53:13 +0800
Subject: v2 original port
---
layouts/shortcodes/img-lazy.html | 10 ++++++++++
layouts/shortcodes/img-nz-lazy.html | 25 +++++++++++++++++++++++++
layouts/shortcodes/img-nz.html | 7 +++++++
layouts/shortcodes/lazyimg-col.html | 3 ---
layouts/shortcodes/lazyimg-row.html | 3 ---
layouts/shortcodes/lazyimg.html | 3 ---
6 files changed, 42 insertions(+), 9 deletions(-)
create mode 100644 layouts/shortcodes/img-lazy.html
create mode 100644 layouts/shortcodes/img-nz-lazy.html
create mode 100644 layouts/shortcodes/img-nz.html
delete mode 100644 layouts/shortcodes/lazyimg-col.html
delete mode 100644 layouts/shortcodes/lazyimg-row.html
delete mode 100644 layouts/shortcodes/lazyimg.html
(limited to 'layouts/shortcodes')
diff --git a/layouts/shortcodes/img-lazy.html b/layouts/shortcodes/img-lazy.html
new file mode 100644
index 0000000..fef9bd3
--- /dev/null
+++ b/layouts/shortcodes/img-lazy.html
@@ -0,0 +1,10 @@
+{{ 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 }}
\ No newline at end of file
diff --git a/layouts/shortcodes/img-nz-lazy.html b/layouts/shortcodes/img-nz-lazy.html
new file mode 100644
index 0000000..bfdb26a
--- /dev/null
+++ b/layouts/shortcodes/img-nz-lazy.html
@@ -0,0 +1,25 @@
+{{ 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 }}
\ No newline at end of file
diff --git a/layouts/shortcodes/img-nz.html b/layouts/shortcodes/img-nz.html
new file mode 100644
index 0000000..1b4f791
--- /dev/null
+++ b/layouts/shortcodes/img-nz.html
@@ -0,0 +1,7 @@
+{{ if (index .Params 2) }}
+
+
+
+{{ else }}
+
+{{ end }}
\ No newline at end of file
diff --git a/layouts/shortcodes/lazyimg-col.html b/layouts/shortcodes/lazyimg-col.html
deleted file mode 100644
index ce68446..0000000
--- a/layouts/shortcodes/lazyimg-col.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
-
-
-
-