aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2022-12-08 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2022-12-08 00:00:00 +0000
commitec831d721ed6560322b6c86c4c0393a73c8d7961327bea2a27d6f19da81f4499 (patch)
treeace27eeb682782b1918ed4e98029617746ffb008b3f737aa0cb384ee328c8004 /layouts
parent89889841de646ef690e8cc2c530fa808868cafb6cbbe52ccc1cd618d7abbc972 (diff)
downloadhugo-theme-journal-ec831d721ed6560322b6c86c4c0393a73c8d7961327bea2a27d6f19da81f4499.tar.gz
hugo-theme-journal-ec831d721ed6560322b6c86c4c0393a73c8d7961327bea2a27d6f19da81f4499.zip
Clarify page variable
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-link.html2
-rw-r--r--layouts/_default/single.gmi2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
index b62e944..8a0192e 100644
--- a/layouts/_default/_markup/render-link.html
+++ b/layouts/_default/_markup/render-link.html
@@ -1,2 +1,2 @@
-{{ $emoji := cond (.Page.Params.nolinkemoji | default false) "" (emojify ":link: ") -}}
+{{ $emoji := cond (.Page.Params.showlinkemoji | default true) (emojify ":link: ") "" -}}
<a class="link" href="{{ .Destination | safeURL }}" rel="noreferrer">{{ $emoji }}{{ .Text | safeHTML }}</a>
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 6201f74..9e2ca9c 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -1,5 +1,5 @@
{{ define "main" }}
-{{ $emoji := cond (.Page.Params.nolinkemoji | default false) "" "🔗 " -}}
+{{ $emoji := cond (.Page.Params.showlinkemoji | default true) "🔗 " "" -}}
=> / 🔗 Return to homepage