Add config paige.pages.max_width
This commit is contained in:
@@ -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:
|
||||
|
@@ -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) " " }}
|
||||
|
||||
<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/page-header.html" $page }}
|
||||
|
||||
|
Reference in New Issue
Block a user