aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/_markup/render-link.html
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-01-28 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-01-28 00:00:00 +0000
commit5cbfcc053bfca905fbced3d41ae1ff52a7a841fb95fe039fbec38ce1b22e5192 (patch)
tree8745f780325941a2ef284a5096fcf9c6935cb3962136ae833d4762a141336d1e /layouts/_default/_markup/render-link.html
parentda0f617e36e91b66ac098df80c0fca577a6ab58b9e555d25a1f0ca5e1dd12ac2 (diff)
downloadhugo-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.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 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:&nbsp;") "" -}}
+{{ $emoji := cond (and (not (.Page.Params.makerefs | default true)) (.Page.Params.showlinkemoji | default true)) (emojify ":link:&nbsp;") "" -}}
<a class="link" href="{{ .Destination | safeURL }}" rel="noreferrer">{{ $emoji }}{{ .Text | safeHTML }}</a> \ No newline at end of file