Website: Open external links in new tab

This commit is contained in:
Chen-I Lim 2021-01-28 11:44:00 -08:00
parent 41e362cfd3
commit 9c78e8a9cf

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 }}</a>