From 2b4825668a78265d02813153857219b487627a42 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 12 Jul 2018 23:22:43 -0400 Subject: [PATCH] Added imgs shortcode. Added gallery to entry/single page. --- layouts/entry/single.html | 14 ++++++++++++++ layouts/shortcodes/imgs.html | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 layouts/shortcodes/imgs.html diff --git a/layouts/entry/single.html b/layouts/entry/single.html index 8d24e5a..7b9f342 100644 --- a/layouts/entry/single.html +++ b/layouts/entry/single.html @@ -34,4 +34,18 @@ {{ end }} +{{ end }} + +{{ define "css" }} + +{{ end }} + +{{ define "scripts" }} + + + {{ end }} \ No newline at end of file diff --git a/layouts/shortcodes/imgs.html b/layouts/shortcodes/imgs.html new file mode 100644 index 0000000..f5fa671 --- /dev/null +++ b/layouts/shortcodes/imgs.html @@ -0,0 +1,16 @@ +
+ {{ range $param := .Params }} + + {{ $items := split $param "|" }} + {{ $src := (index $items 0) }} + {{ $title := (index $items 1) }} +
+ + {{ $title }} + + {{ if $title }} +

{{ $title }}

+ {{ end }} +
+ {{ end }} +
\ No newline at end of file