Replace max_width params with paige.max_width

master
Will Faught 2 years ago
parent 6014ec3aa0
commit 73394c84c8

@ -244,8 +244,6 @@ paige:
account_id: "" account_id: ""
utterances: # See https://utteranc.es utterances: # See https://utteranc.es
github_repo: "" github_repo: ""
content:
max_width: ""
credit: credit:
data: data:
hide: false # Don't credit this project in a data attribute hide: false # Don't credit this project in a data attribute
@ -257,11 +255,10 @@ paige:
git: git:
commit_url_prefix: "" # Example is "https://github.com/willfaught/paige/commit/" commit_url_prefix: "" # Example is "https://github.com/willfaught/paige/commit/"
math: false # Enable math typesetting math: false # Enable math typesetting
max_width: "" # Maximum width for whole page
menu: menu:
breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items
style: "pills" # Must be "links" or "pills" style: "pills" # Must be "links" or "pills"
metadata:
max_width: ""
rss: rss:
hide_page: false hide_page: false
managing_editor: "" managing_editor: ""
@ -271,8 +268,6 @@ paige:
section_pages: section_pages:
full_pages: false # Display full pages in the list of pages. full_pages: false # Display full pages in the list of pages.
style: "" # CSS included at the end of the stylesheet, before layouts/paige/style-last.css. style: "" # CSS included at the end of the stylesheet, before layouts/paige/style-last.css.
table_of_contents:
max_width: ""
``` ```
The assigned values shown are the default values. The assigned values shown are the default values.

@ -39,12 +39,6 @@ body, html {
margin-bottom: 0; margin-bottom: 0;
} }
{{ with $page.Param "paige.content.max_width" }}
.paige-content {
max-width: {{ . | safeCSS }};
}
{{ end }}
.paige-figure .highlight .chroma pre, .paige-figure .highlight pre.chroma { .paige-figure .highlight .chroma pre, .paige-figure .highlight pre.chroma {
margin-bottom: 0; margin-bottom: 0;
} }
@ -71,14 +65,8 @@ body, html {
opacity: 1; opacity: 1;
} }
{{ with $page.Param "paige.metadata.max_width" }} {{ with $page.Param "paige.max_width" }}
.paige-metadata { #paige-root {
max-width: {{ . | safeCSS }};
}
{{ end }}
{{ with $page.Param "paige.table_of_contents.max_width" }}
.paige-toc {
max-width: {{ . | safeCSS }}; max-width: {{ . | safeCSS }};
} }
{{ end }} {{ end }}

Loading…
Cancel
Save