From 11ca5db8fefbf7750d1a7c4f7c09dff81b6289c6 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 13 Jul 2018 21:55:03 +1000 Subject: [PATCH] Add a gifv shortcode --- layouts/shortcodes/gifv.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 layouts/shortcodes/gifv.html diff --git a/layouts/shortcodes/gifv.html b/layouts/shortcodes/gifv.html new file mode 100644 index 0000000..92ecdd9 --- /dev/null +++ b/layouts/shortcodes/gifv.html @@ -0,0 +1,19 @@ + +
+ {{ range $param := .Params }} + + {{ $items := split $param "|" }} + {{ $src := (index $items 0) }} + {{ $title := (index $items 1) }} +
+ + + {{ if $title }} +

{{ $title }}

+ {{ end }} +
+ {{ end }} +