From a299a4b07b7d78559f70e03a2f0d00cbb205d6f1 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 27 May 2019 18:25:58 +0200 Subject: #39, Add button shortcode --- layouts/shortcodes/button.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 layouts/shortcodes/button.html (limited to 'layouts/shortcodes/button.html') diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html new file mode 100644 index 0000000..88b0f20 --- /dev/null +++ b/layouts/shortcodes/button.html @@ -0,0 +1,10 @@ +{{ $ref := "" }} +{{ $target := "" }} +{{ with .Get "href" }} + {{ $ref = . }} + {{ $target = "_blank" }} +{{ end }} +{{ with .Get "relref" }} + {{ $ref = relref $ . }} +{{ end }} +{{ $.Inner }} -- cgit v1.2.3