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

4 lines
207 B
HTML
Raw Normal View History

<a href="{{ .Destination | safeURL }}"
{{ with .Title}} title="{{ . }}"{{ end }}
{{ if strings.HasPrefix .Destination "http" }}
2020-08-14 17:46:54 +00:00
target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }} </a>