From f4a93b8345e75864b9225dbc1aaa5923ad705baa1e48a1c21b48e163e768b847 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 21 Jan 2023 00:00:00 +0000 Subject: Only print links header when there are links --- layouts/_default/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 6cb5005..fe5dd83 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -30,7 +30,7 @@ {{- $content = $content | replaceRE `\n- ` "\n* " }} {{- $content = $content | emojify }} {{- $content | safeHTML }} -{{- if (.Page.Params.makerefs | default true) }} +{{- if and (.Page.Params.makerefs | default true) $refs }} ## Links {{- $scratch.Set "ref" 1 }} -- cgit v1.2.3