Add paige.main.table_of_contents.max_width param

master
Will Faught 2 years ago
parent a276e05101
commit 643eb4842e

@ -219,7 +219,7 @@ paige:
raw: false # Do not copy or process the file; default is false raw: false # Do not copy or process the file; default is false
color: "#123456" # Theme color for Safari and Windows; default is "#0d6efd" color: "#123456" # Theme color for Safari and Windows; default is "#0d6efd"
color_scheme: "light" # Use the "light" or "dark" color scheme without automatic switching; default is "" color_scheme: "light" # Use the "light" or "dark" color scheme without automatic switching; default is ""
content_max_width: "66ch" # Page table of contents and content max width; default is "" content_max_width: "66ch" # Page content max width; default is ""
comments: comments:
cactus: # cactus.chat cactus: # cactus.chat
account_id: "123456" account_id: "123456"
@ -328,6 +328,7 @@ paige:
hide: false # Default is false hide: false # Default is false
table_of_contents: table_of_contents:
hide: false # Default is false hide: false # Default is false
max_width: "66ch" # Default is ""
rss: rss:
managing_editor: "Michael Bluth" # Default is "" managing_editor: "Michael Bluth" # Default is ""
web_master: "Michael Bluth" # Default is "" web_master: "Michael Bluth" # Default is ""

@ -33,7 +33,13 @@ section.paige-content > blockquote p:last-of-type {
} }
{{ with $page.Param "paige.content_max_width" }} {{ with $page.Param "paige.content_max_width" }}
section.paige-content, section.paige-toc { section.paige-content {
max-width: {{ . }};
}
{{ end }}
{{ with $page.Param "paige.main.table_of_contents.max_width" }}
section.paige-toc {
max-width: {{ . }}; max-width: {{ . }};
} }
{{ end }} {{ end }}

Loading…
Cancel
Save