link render hook: avoid spaces before and after link
This commit is contained in:
parent
5e0256046c
commit
760f561874
1 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
<a {{ with .Title }}title="{{ . }}" {{ end -}}
|
{{- "" -}}<a {{ with .Title }}title="{{ . }}" {{ end -}}
|
||||||
{{ if hasPrefix .Destination "https://" }}target="_blank" {{ end -}}
|
{{ if hasPrefix .Destination "https://" }}target="_blank" {{ end -}}
|
||||||
href="{{ .Destination }}">{{ .Text }}</a>
|
href="{{ .Destination }}">{{ .Text }}</a>{{- "" -}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue