open external links in the new tab (#1153)

This commit is contained in:
trean
2024-09-06 16:28:26 +02:00
committed by GitHub
parent 7280357567
commit f1e3e09905
@@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener nofollow"{{ end }}>{{ .Text | safeHTML }}</a>