The repo tracks work progress for ura.design website redesign

4 lines
250 B

3 years ago
<a href={{ .Destination | safeURL }}
{{ if strings.HasPrefix .Destination "mailto" -}} target="_blank" {{end}}
{{ if strings.HasPrefix .Destination "http" -}} target="_blank" rel="noopener noreferrer" {{- end }}
>{{ .Text | safeHTML }}</a>