diff options
author | Axel Bock <mr.axel.bock@gmail.com> | 2021-08-16 15:02:50 +0300 |
---|---|---|
committer | Axel Bock <mr.axel.bock@gmail.com> | 2021-08-16 15:02:50 +0300 |
commit | 7af8b5ff2ecfffb770489d5fdbd39d94da17f072 (patch) | |
tree | 2abb2d27c17b4476ba2f39f362a1e7ba857b53de | |
parent | 4ff6baaf6c61b8cf48eaaa331727570d03fd622d (diff) |
fix unwanted spaces in link rendering
-rw-r--r-- | layouts/_default/_markup/render-link.html | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 2a144d8..70ac35e 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,13 +1 @@ -<a - href="{{ .Destination | safeURL }}" - {{ with .Title}} - title="{{ . }}" - {{ end }} - - {{ if strings.HasPrefix .Destination "http" }} - target="_blank" - rel="noopener" - {{ end }} -> - {{ .Text | safeHTML }} -</a>
\ No newline at end of file +<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}" {{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
\ No newline at end of file |