You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ozgurkon-theme-hugo/layouts/shortcodes/button-link.html

12 lines
340 B

{{ $_hugo_config := `{ "version": 1 }` }}
{{ $icon := .Get "icon" }}
{{ $url := .Get "url" }}
{{ $label := .Get "label" }}
<a class="btn primary" href="{{ $url }}">
{{ if and $icon (not (eq $icon "right")) }}{{ partial "icon.html" $icon }}{{ end }}
{{- $label -}}
{{ if eq $icon "right" }}{{ partial "icon.html" $icon }}{{ end }}
</a>