danix
's git repository
home
/
my projects
/
theme-danix.xyz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ea07a0
)
added actions shortcode.
author
danix
<danix@danix.xyz>
Tue, 7 Mar 2023 17:00:49 +0000
(18:00 +0100)
committer
danix
<danix@danix.xyz>
Tue, 7 Mar 2023 17:00:49 +0000
(18:00 +0100)
layouts/shortcodes/actions.html
[new file with mode: 0644]
patch
|
blob
diff --git a/layouts/shortcodes/actions.html
b/layouts/shortcodes/actions.html
new file mode 100644
(file)
index 0000000..
9e93ef0
--- /dev/null
+++ b/
layouts/shortcodes/actions.html
@@ -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