🔀 Merge pull request #456 from jpanther/render-link-fix

🐛 Remove whitespace at EOF in render-link
pull/459/head
James Panther 2023-01-24 08:40:19 +11:00 committed by GitHub
commit 63c303b915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>
<a
href="{{ .Destination | safeURL }}"
{{ with .Title }}title="{{ . }}"{{ end }}
{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noreferrer noopener"{{ end }}
>
{{- .Text | safeHTML -}}
</a>