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 }}