Fixes link rendered template

This commit is contained in:
Andrew Gioia 2020-08-14 13:46:54 -04:00
parent 8333b7f311
commit 98f240fe4d

View File

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