From ec831d721ed6560322b6c86c4c0393a73c8d7961327bea2a27d6f19da81f4499 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Thu, 8 Dec 2022 00:00:00 +0000 Subject: Clarify page variable --- layouts/_default/_markup/render-link.html | 2 +- layouts/_default/single.gmi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/_default') 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: ") "" -}} {{ $emoji }}{{ .Text | safeHTML }} 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 -- cgit v1.2.3