added actions shortcode.
[theme-danix.xyz.git] / layouts / shortcodes / actions.html
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