From 9ccd44c4f6e0c9f0374917b1b4cb878f2eceae080c74f8059078eeb3b21ae634 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Tue, 6 Sep 2022 00:00:00 +0000 Subject: Allow link emojis to be turned off per-page --- layouts/_default/_markup/render-link.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layouts/_default/_markup') diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 9a14f8f..fb5a1e3 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1 +1,2 @@ -🔗 {{ .Text | safeHTML }} +{{ $emoji := cond (.Page.Params.nolinkemoji | default false) "" "🔗 " -}} +{{ $emoji }}{{ .Text | safeHTML }} -- cgit v1.2.3