From 4cddcc49f68379b85ef50994ed834303a06034e2945fc9359d0a734db3b8d44a Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Tue, 6 Dec 2022 00:00:00 +0000 Subject: Show page info by default on entries only --- layouts/_default/single.gmi | 2 +- layouts/_default/single.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 17d77bf..6201f74 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -3,7 +3,7 @@ => / 🔗 Return to homepage -{{ if .Page.Params.pageinfo }}{{ partial "pageinfo" . }} +{{ if (.Page.Params.pageinfo | default true) }}{{ partial "pageinfo" . }} {{ end -}} # {{ .Name | safeHTML }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3a6ade1..a1f9ea3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@ -{{- if .Page.Params.pageinfo }} +{{- if (.Page.Params.pageinfo | default true) }}

{{ partial "pageinfo" . }}

{{ end }}

{{ .Name }}

-- cgit v1.2.3