6 lines
285 B
HTML
6 lines
285 B
HTML
|
{{ $class := .Get "class" -}}
|
||
|
{{ $newtab := .Get "newtab" | default false -}}
|
||
|
{{ $src := .Get "src" -}}
|
||
|
{{ $text := .Get "text" -}}
|
||
|
<a class="button{{ with $class }} {{ . }}{{ end }}" href="{{ $src }}"{{ if $newtab }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ $text }}</a>
|