From 9897eff5d4fe78e26efd5e362cd32672575fae14 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Fri, 24 Jul 2020 09:17:09 +0800 Subject: Fix image relative link issue --- layouts/shortcodes/img-lazy.html | 6 +++--- layouts/shortcodes/img-nz-lazy.html | 12 ++++++------ layouts/shortcodes/img-nz.html | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/img-lazy.html b/layouts/shortcodes/img-lazy.html index a8927a5..bac255b 100644 --- a/layouts/shortcodes/img-lazy.html +++ b/layouts/shortcodes/img-lazy.html @@ -2,21 +2,21 @@ {{ 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 }} diff --git a/layouts/shortcodes/img-nz-lazy.html b/layouts/shortcodes/img-nz-lazy.html index a606f51..8a46329 100644 --- a/layouts/shortcodes/img-nz-lazy.html +++ b/layouts/shortcodes/img-nz-lazy.html @@ -2,21 +2,21 @@ {{ 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 }} @@ -24,7 +24,7 @@ {{ index .Params 0 }} @@ -33,7 +33,7 @@ {{ index .Params 1 }} @@ -42,7 +42,7 @@ {{ index .Params 1 }} diff --git a/layouts/shortcodes/img-nz.html b/layouts/shortcodes/img-nz.html index 30ea28a..2e4b3af 100644 --- a/layouts/shortcodes/img-nz.html +++ b/layouts/shortcodes/img-nz.html @@ -1,7 +1,7 @@ {{ if (index .Params 2) }} - {{ index .Params 0 }} + {{ index .Params 0 }} {{ else }} -{{ index .Params 0 }} +{{ index .Params 0 }} {{ end }} -- cgit v1.2.3