🐛 Remove whitespace at EOF in render-link

Fixes #453
pull/456/head
James Panther 2023-01-24 08:37:50 +11:00
parent 91cafad2df
commit 1f96038a60
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 7 additions and 3 deletions

View File

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