aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-link.html
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2024-11-03 10:37:32 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2024-11-03 10:37:32 -0600
commitb2b833f447417e6eeab6f73327d6db915593f8ad (patch)
treebcd3e69ff82df656227642c685b4ad0de60606c4 /layouts/_default/_markup/render-link.html
parent03b7ee9f6f471097cd1eef4e658208b54100acac (diff)
downloadhugo-theme-tjkbasic-b2b833f447417e6eeab6f73327d6db915593f8ad.tar.xz
hugo-theme-tjkbasic-b2b833f447417e6eeab6f73327d6db915593f8ad.zip
fix newline/space after link
Diffstat (limited to 'layouts/_default/_markup/render-link.html')
-rw-r--r--layouts/_default/_markup/render-link.html2
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>{{- "" -}}