diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2024-11-03 10:37:32 -0600 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2024-11-03 10:37:32 -0600 |
commit | b2b833f447417e6eeab6f73327d6db915593f8ad (patch) | |
tree | bcd3e69ff82df656227642c685b4ad0de60606c4 /layouts/_default/_markup | |
parent | 03b7ee9f6f471097cd1eef4e658208b54100acac (diff) | |
download | hugo-theme-tjkbasic-b2b833f447417e6eeab6f73327d6db915593f8ad.tar.xz hugo-theme-tjkbasic-b2b833f447417e6eeab6f73327d6db915593f8ad.zip |
fix newline/space after link
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r-- | layouts/_default/_markup/render-link.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 69a1c1a..d8d9da0 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1 +1 @@ -<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a> +<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>{{- "" -}} |