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.
12 lines
340 B
12 lines
340 B
5 years ago
|
{{ $_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>
|
||
|
|