From 13d895f7875c98ab849e86f4c88de1c2af2b60e9 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 19 Feb 2025 00:01:10 -0800 Subject: [PATCH] Add config paige.pages.max_width --- README.md | 3 +++ layouts/partials/paige/page.html | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 70b1ca20..195347a7 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,9 @@ disable_title = false disable_toc = false disable_word_count = false +# Presentation +max_width = false # Whether the page body has the maximum width + # Schema base_schema = {} # JSON-LD schema that all page schemas override # Example: diff --git a/layouts/partials/paige/page.html b/layouts/partials/paige/page.html index 35e169f8..3e491a87 100644 --- a/layouts/partials/paige/page.html +++ b/layouts/partials/paige/page.html @@ -6,6 +6,7 @@ {{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }} {{ $future := and $page.PublishDate (gt $page.PublishDate now) }} {{ $microdata := $page.Params.paige.pages.microdata }} +{{ $min := $page.Param `paige.pages.max_width` | not }} {{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }} {{ if $draft }} @@ -44,7 +45,7 @@ {{ $class = delimit ($class | uniq | sort) " " }} -
+
{{ partial "paige/func-include.html" (dict "name" "page-first%s.html" "page" $page) }} {{ partial "paige/page-header.html" $page }}