aboutsummaryrefslogtreecommitdiff
path: root/generators
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-02-05 23:45:13 -0500
committerThedro Neely <thedroneely@gmail.com>2022-02-05 23:45:13 -0500
commited6465c7ada237e9c91b38fcaa4d7a2e9a79e078 (patch)
tree8a09277aa1f75343ba85089e003a32b87eb14861 /generators
parent7d1f9c4082f6f889949adb1b8821dfbec599e2e8 (diff)
downloadthedroneely.com-ed6465c7ada237e9c91b38fcaa4d7a2e9a79e078.tar.gz
thedroneely.com-ed6465c7ada237e9c91b38fcaa4d7a2e9a79e078.tar.bz2
thedroneely.com-ed6465c7ada237e9c91b38fcaa4d7a2e9a79e078.zip
generators/hugo/../_markup/render-link: Remove trailing white space
Newlines can affect output rendering by adding trailing white space. Add URL to anchor title.
Diffstat (limited to 'generators')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/_markup/render-link.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/_markup/render-link.html b/generators/hugo/themes/tdro/layouts/_default/_markup/render-link.html
index 9b47dc4..a8cb6e6 100644
--- a/generators/hugo/themes/tdro/layouts/_default/_markup/render-link.html
+++ b/generators/hugo/themes/tdro/layouts/_default/_markup/render-link.html
@@ -7,4 +7,5 @@
{{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}}
{{- with .Page.GetPage $url.Path }}{{ $link = printf "%s%s" .RelPermalink $fragment }}{{ end }}{{ end -}}
{{- end -}}
-<a rel="noopener" href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
+<a title="{{ $link | safeURL }}" rel="noopener" href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
+{{- /* This comment removes trailing newlines. */ -}}