From b77fcbccc69e1af888f8cda9b1795131a8ad1193 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 16 Dec 2022 16:07:09 -0800 Subject: [PATCH] Move paige_show_full_pages logic to list layout --- layouts/_default/list.html | 2 ++ layouts/partials/paige-title.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 647e144f..1cd70666 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,4 +1,6 @@ {{ define "main" }} +{{ if not .Params.paige_show_full_pages }} {{ partial "paige-main.html" . }} +{{ end }} {{ partial "paige-pages.html" . }} {{ end }} diff --git a/layouts/partials/paige-title.html b/layouts/partials/paige-title.html index 7ba54cec..f42ad60d 100644 --- a/layouts/partials/paige-title.html +++ b/layouts/partials/paige-title.html @@ -6,7 +6,7 @@ {{ $title = .Site.Title }} {{ end }} {{ end }} -{{ if and $title (not .Params.paige_show_full_pages) }} +{{ if $title }}

{{ with .Params.link }} {{ $title | markdownify }}