5 lines
230 B
HTML
5 lines
230 B
HTML
|
{{- $url := .Destination | safeURL -}}
|
||
|
{{- $text := .Text | safeHTML -}}
|
||
|
<a href="{{- $url -}}"
|
||
|
{{- with .Title -}}title="{{- . -}}"{{- end -}}
|
||
|
{{- if strings.HasPrefix $url "http" -}}target="_blank"{{- end -}}>{{- $text -}}</a>
|