mirror of https://github.com/onweru/compose.git

G.T. Smarmy
15.19.2023 67dad4f6ef906e78b3c6bb870e26e00b69b3b501
Update button.html (#116)

Allows markdown to be applied in a button
1 files modified
2 ■■■ changed files
layouts/shortcodes/button.html 2 ●●● patch | view | raw | blame | history
layouts/shortcodes/button.html
@@ -1,4 +1,4 @@
{{- $link := .Get 0 -}}
{{- $label := .Get 1 -}}
{{- $modifier := .Get 2 -}}
<a href="{{ $link }}" class="button{{ with $modifier }} {{ . }}{{ end }}">{{- $label -}}</a>
<a href="{{ $link }}" class="button{{ with $modifier }} {{ . }}{{ end }}">{{- $label | markdownify -}}</a>