diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-01-21 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-01-21 00:00:00 +0000 |
commit | f4a93b8345e75864b9225dbc1aaa5923ad705baa1e48a1c21b48e163e768b847 (patch) | |
tree | b309aad3f4c9ce9c95012b8bb2d6eedda285ec2d54ea0c460855a0a1315fb220 /layouts/_default/single.gmi | |
parent | f9d5f9d7cb1fa2bf22e33f570ea4a70be0924d7b7cf01e2b5c8e84f4500195ed (diff) | |
download | hugo-theme-journal-f4a93b8345e75864b9225dbc1aaa5923ad705baa1e48a1c21b48e163e768b847.tar.gz hugo-theme-journal-f4a93b8345e75864b9225dbc1aaa5923ad705baa1e48a1c21b48e163e768b847.zip |
Only print links header when there are links
Diffstat (limited to 'layouts/_default/single.gmi')
-rw-r--r-- | layouts/_default/single.gmi | 2 |
1 files changed, 1 insertions, 1 deletions
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 }} |