2021-09-12 07:44:34 +00:00
|
|
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
|
|
|
<a{{ with .Get "href"}} href="{{ . }}" target="_blank"{{ end }} class="btn btn-default">
|
|
|
|
{{- $icon := .Get "icon" }}
|
|
|
|
{{- $iconposition := .Get "icon-position" }}
|
|
|
|
{{- if ($icon) }}
|
|
|
|
{{- if or (not ($iconposition)) (eq $iconposition "left") }}
|
|
|
|
<i class="{{ $icon }}"></i>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2016-03-29 12:46:32 +00:00
|
|
|
{{ .Inner }}
|
2021-09-12 07:44:34 +00:00
|
|
|
{{- if and ($icon) (eq $iconposition "right")}}
|
2016-03-29 12:46:32 +00:00
|
|
|
<i class="{{$icon}}"></i>
|
2021-09-12 07:44:34 +00:00
|
|
|
{{- end }}
|
2016-03-29 12:46:32 +00:00
|
|
|
</a>
|