added actions shortcode.
authordanix <danix@danix.xyz>
Tue, 7 Mar 2023 17:00:49 +0000 (18:00 +0100)
committerdanix <danix@danix.xyz>
Tue, 7 Mar 2023 17:00:49 +0000 (18:00 +0100)
layouts/shortcodes/actions.html [new file with mode: 0644]

diff --git a/layouts/shortcodes/actions.html b/layouts/shortcodes/actions.html
new file mode 100644 (file)
index 0000000..9e93ef0
--- /dev/null
@@ -0,0 +1,8 @@
+{{ $link := .Get "url" }}
+{{ $desc := .Get "desc" }}
+{{ $outclass := .Get "outclass" }}
+{{ $inclass := .Get "inclass" }}
+<ul class="actions{{ with $outclass }} {{ . }}{{ end }}">
+       <li><a href="{{ $link }}" class="button{{ with $inclass }} {{ . }}{{ end }}">{{ $desc }}</a></li>
+</ul>
\ No newline at end of file