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

🐛 Remove whitespace at EOF in render-link
This commit is contained in:
James Panther
2023-01-24 08:40:19 +11:00
committed by GitHub
+7 -3
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>