Fixes weird link render formatting

This commit is contained in:
Andrew Gioia 2020-08-14 21:04:34 -04:00
parent 4cb3eebd4d
commit ce7bbd5d1d
1 changed files with 1 additions and 4 deletions

View File

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