diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-12-02 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-12-02 00:00:00 +0000 |
commit | efe02b96a8feb4c60fc9e9de3a5022c92c18c8db755628adaf9a22a2cadecfda (patch) | |
tree | 60165c72dfba91e62ebf4c95a6e56bb9652e95b0dc1abccca8c4de8e416a5808 | |
parent | f34e453196b85e756b16f5ff668d15c2462948e6778657907ff52821d360309b (diff) | |
download | hugo-theme-journal-efe02b96a8feb4c60fc9e9de3a5022c92c18c8db755628adaf9a22a2cadecfda.tar.gz hugo-theme-journal-efe02b96a8feb4c60fc9e9de3a5022c92c18c8db755628adaf9a22a2cadecfda.zip |
Add titles to links
-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 1d39360..5ffb876 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,2 +1,2 @@ {{ $emoji := cond (and (not (.Page.Params.makerefs | default true)) (.Page.Params.showlinkemoji | default true)) (emojify ":link: ") "" -}} -{{ $emoji }}<a class="link" href="{{ .Destination | safeURL }}"{{ if strings.HasPrefix .Destination "http" }} rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>
\ No newline at end of file +{{ $emoji }}<a class="link" href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>
\ No newline at end of file |