From 643eb4842ed9dd5671ae08b4e419b208f16cf836 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 5 Feb 2023 15:12:39 -0800 Subject: [PATCH] Add paige.main.table_of_contents.max_width param --- README.md | 3 ++- layouts/partials/paige/style.html | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e02251df..02a129fd 100644 --- a/README.md +++ b/README.md @@ -219,7 +219,7 @@ paige: raw: false # Do not copy or process the file; default is false 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 "" - 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: cactus: # cactus.chat account_id: "123456" @@ -328,6 +328,7 @@ paige: hide: false # Default is false table_of_contents: hide: false # Default is false + max_width: "66ch" # Default is "" rss: managing_editor: "Michael Bluth" # Default is "" web_master: "Michael Bluth" # Default is "" diff --git a/layouts/partials/paige/style.html b/layouts/partials/paige/style.html index 3dcec3b8..145fb63e 100644 --- a/layouts/partials/paige/style.html +++ b/layouts/partials/paige/style.html @@ -33,7 +33,13 @@ section.paige-content > blockquote p:last-of-type { } {{ 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: {{ . }}; } {{ end }}