From ae4f84f944b4ba1fcdd3cfd95ea58623e708f37c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 13 Jul 2019 22:34:21 +0200 Subject: [PATCH] add shortcode on-off [on/off] --- layouts/shortcodes/on-off.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 layouts/shortcodes/on-off.html diff --git a/layouts/shortcodes/on-off.html b/layouts/shortcodes/on-off.html new file mode 100644 index 0000000..e2d2308 --- /dev/null +++ b/layouts/shortcodes/on-off.html @@ -0,0 +1,8 @@ +{{ $mode := .Get 0 }} +{{ if eq $mode "on" }} + On +{{ else if eq $mode "off"}} + Off +{{ else }} + ??? +{{end}}