diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-04-12 02:33:48 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-04-12 02:33:48 -0400 |
commit | de865f38ddc6bfd7ae42e6f7819f4dc4713f160e (patch) | |
tree | 7a4bfbb27564e9d26ba6be8c963b28f9fcc5a983 | |
parent | 1c27c28a4b87e005bd3a1fcf895324760884b863 (diff) | |
download | thedroneely.com-de865f38ddc6bfd7ae42e6f7819f4dc4713f160e.tar.gz thedroneely.com-de865f38ddc6bfd7ae42e6f7819f4dc4713f160e.tar.bz2 thedroneely.com-de865f38ddc6bfd7ae42e6f7819f4dc4713f160e.zip |
generators/hugo/_default/_markup/render-link: No duplicate titles
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/_markup/render-link.html | 5 |
1 files changed, 2 insertions, 3 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 b6574a2..9b1ffae 100644 --- a/generators/hugo/themes/tdro/layouts/_default/_markup/render-link.html +++ b/generators/hugo/themes/tdro/layouts/_default/_markup/render-link.html @@ -8,10 +8,9 @@ {{- with .Page.GetPage $url.Path }}{{ $link = printf "%s%s" .RelPermalink $fragment }}{{ end }}{{ end -}} {{- end -}} <a - title="{{ $link | safeURL }}" rel="noopener" href="{{ $link | safeURL }}" - {{ with .Title }} + {{ with or .Title ($link | safeURL) -}} title="{{ . }}" {{ end }} {{- if $isRemote -}} @@ -19,4 +18,4 @@ {{ end }}> {{- .Text | safeHTML -}} </a> -{{- /* This comment removes trailing newlines. */ -}} +{{- /* This comment removes trailing newlines and white spaces. */ -}} |