night0721.xyz/layouts/shortcodes/hrefbut.html

6 lines
173 B
HTML
Raw Normal View History

2023-11-11 02:03:23 +01:00
{{ if .IsNamedParams }}
{{ $click := .Get "onclick" }}
<button class="general-button" onclick='{{ safeJS (printf $click)}};'>{{ .Get "text" }}</button>
{{ else }}
{{ end }}