hacker.tours-website/themes/zen/layouts/shortcodes/button.html

6 lines
285 B
HTML
Raw Normal View History

2024-06-13 22:14:05 +02:00
{{ $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>