External links will open on a new tab

This commit is contained in:
Nuno Coração
2022-10-09 17:20:24 +01:00
committed by GitHub
parent d41e280939
commit e7d7b6e80d
@@ -0,0 +1,3 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
{{ .Text | safeHTML }}
</a>