link render hook: avoid spaces before and after link

This commit is contained in:
Helmut Merz 2024-11-13 09:21:46 +01:00
parent 5e0256046c
commit 760f561874

View file

@ -1,3 +1,3 @@
<a {{ with .Title }}title="{{ . }}" {{ end -}}
{{- "" -}}<a {{ with .Title }}title="{{ . }}" {{ end -}}
{{ if hasPrefix .Destination "https://" }}target="_blank" {{ end -}}
href="{{ .Destination }}">{{ .Text }}</a>
href="{{ .Destination }}">{{ .Text }}</a>{{- "" -}}