New tab for External URL

This commit is contained in:
Xavi 2023-02-18 12:50:10 -08:00
parent 2982078069
commit 0430cd237b

View File

@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>