diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-01-28 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-01-28 00:00:00 +0000 |
commit | 5cbfcc053bfca905fbced3d41ae1ff52a7a841fb95fe039fbec38ce1b22e5192 (patch) | |
tree | 8745f780325941a2ef284a5096fcf9c6935cb3962136ae833d4762a141336d1e /layouts/_default/_markup/render-link.html | |
parent | da0f617e36e91b66ac098df80c0fca577a6ab58b9e555d25a1f0ca5e1dd12ac2 (diff) | |
download | hugo-theme-journal-5cbfcc053bfca905fbced3d41ae1ff52a7a841fb95fe039fbec38ce1b22e5192.tar.gz hugo-theme-journal-5cbfcc053bfca905fbced3d41ae1ff52a7a841fb95fe039fbec38ce1b22e5192.zip |
Don't render link emoji for inline links
Diffstat (limited to 'layouts/_default/_markup/render-link.html')
-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 d973959..0db1d0d 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,2 +1,2 @@ -{{ $emoji := cond (.Page.Params.showlinkemoji | default true) (emojify ":link: ") "" -}} +{{ $emoji := cond (and (not (.Page.Params.makerefs | default true)) (.Page.Params.showlinkemoji | default true)) (emojify ":link: ") "" -}} <a class="link" href="{{ .Destination | safeURL }}" rel="noreferrer">{{ $emoji }}{{ .Text | safeHTML }}</a>
\ No newline at end of file |