<a
    href="{{ .Destination | safeURL }}"
    {{ with .Title }}title="{{ . }}"{{ end }}
    {{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noopener"{{ end }}
>
    {{- .Text | safeHTML -}}
</a>
{{- /* This comment gets rid of the trailing newline. */ -}}