friendenstein/layouts/_default/_markup/render-link.html

2 lines
225 B
HTML
Raw Normal View History

2022-11-21 22:15:50 +01:00
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "https") }} target="_blank"{{ end }} >{{ .Text | safeHTML }}</a>