night0721.xyz/layouts/shortcodes/hrefbut.html
2023-11-11 01:03:23 +00:00

5 lines
173 B
HTML

{{ if .IsNamedParams }}
{{ $click := .Get "onclick" }}
<button class="general-button" onclick='{{ safeJS (printf $click)}};'>{{ .Get "text" }}</button>
{{ else }}
{{ end }}