Add config paige.pages.max_width

master
Will Faught 5 months ago
parent a4ff7867d2
commit 13d895f787

@ -246,6 +246,9 @@ disable_title = false
disable_toc = false disable_toc = false
disable_word_count = false disable_word_count = false
# Presentation
max_width = false # Whether the page body has the maximum width
# Schema # Schema
base_schema = {} # JSON-LD schema that all page schemas override base_schema = {} # JSON-LD schema that all page schemas override
# Example: # Example:

@ -6,6 +6,7 @@
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }} {{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
{{ $future := and $page.PublishDate (gt $page.PublishDate now) }} {{ $future := and $page.PublishDate (gt $page.PublishDate now) }}
{{ $microdata := $page.Params.paige.pages.microdata }} {{ $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) }} {{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
{{ if $draft }} {{ if $draft }}
@ -44,7 +45,7 @@
{{ $class = delimit ($class | uniq | sort) " " }} {{ $class = delimit ($class | uniq | sort) " " }}
<article class="align-items-center d-flex flex-column {{ $class }}" id="paige-page"> <article class="{{ if $min }} align-items-center d-flex flex-column {{ end }} {{ $class }}" id="paige-page">
{{ partial "paige/func-include.html" (dict "name" "page-first%s.html" "page" $page) }} {{ partial "paige/func-include.html" (dict "name" "page-first%s.html" "page" $page) }}
{{ partial "paige/page-header.html" $page }} {{ partial "paige/page-header.html" $page }}

Loading…
Cancel
Save