diff --git a/layouts/shortcodes/imgs-compare-include-end.html b/layouts/shortcodes/imgs-compare-include-end.html new file mode 100644 index 0000000..9f10804 --- /dev/null +++ b/layouts/shortcodes/imgs-compare-include-end.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/shortcodes/single-title-imgs-compare.html b/layouts/shortcodes/single-title-imgs-compare.html new file mode 100644 index 0000000..38aed05 --- /dev/null +++ b/layouts/shortcodes/single-title-imgs-compare.html @@ -0,0 +1,22 @@ +{{ $title := .Get 0 }} +
+
+ {{ range $param := last 2 .Params }} + + {{ $items := split $param "|" }} + {{ $src := (index $items 0) }} + {{ $subtitle := (index $items 1) }} + {{ $split_src := split $src "." }} + {{ $extension := index $split_src (sub (len $split_src) 1) }} + {{- if eq $extension "png" -}} + {{ $title }} + {{- else -}} + {{ $title }} + {{- end -}} + {{ end }} +
+
+ +{{ if $title }} +

{{ $title }}

+{{ end }}