Fixes link rendered template

This commit is contained in:
Andrew Gioia 2020-08-14 13:46:54 -04:00
parent 8333b7f311
commit 98f240fe4d
1 changed files with 1 additions and 1 deletions

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>