From 64455aeb92f6c890694634fdb99b883b32935e5c Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 30 Dec 2022 23:17:37 -0800 Subject: [PATCH] Add site params content_max_width, metadata_max_width --- README.md | 2 ++ layouts/partials/paige/article.html | 8 +++++--- layouts/partials/paige/content.html | 20 ++++++-------------- layouts/partials/paige/metadata.html | 2 +- layouts/partials/paige/script.html | 4 ++-- layouts/partials/paige/style.html | 20 ++++++++++++++++---- layouts/partials/paige/toc.html | 10 +++------- 7 files changed, 35 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 2b06554b..983e1bfc 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,7 @@ paige: scripts_path: "my-assets/my-bootstrap.bundle.min.js" # Use local Bootstrap scripts styles_path: "my-assets/my-bootstrap.min.css" # Use local Bootstrap styles color: "#123456" # Theme color for Safari and Windows + content_max_width: 66ch # Page table of contents and content max width comments: cactus: # cactus.chat account_id: "123456" @@ -234,6 +235,7 @@ paige: hide_theme_comment: true # Don't put a link to this project in a code comment hide_theme_link: true # Don't put a link to this project in the footer menu_style: "links" # Menu is link list for "links", tab list for "tabs", or pill list if unset + metadata_max_width: 100ch # Page metadata max width rss: managing_editor: "Michael Bluth" web_master: "Michael Bluth" diff --git a/layouts/partials/paige/article.html b/layouts/partials/paige/article.html index 9deab301..6906fd12 100644 --- a/layouts/partials/paige/article.html +++ b/layouts/partials/paige/article.html @@ -1,5 +1,7 @@
- {{ partial "paige/metadata" . }} - {{ partial "paige/toc" . }} - {{ partial "paige/content" . }} +
+ {{ partial "paige/metadata" . }} + {{ partial "paige/toc" . }} + {{ partial "paige/content" . }} +
diff --git a/layouts/partials/paige/content.html b/layouts/partials/paige/content.html index 35f40eff..90497922 100644 --- a/layouts/partials/paige/content.html +++ b/layouts/partials/paige/content.html @@ -1,17 +1,9 @@ {{ if .Content }} -
-
-
-
-
- {{ if .Scratch.Get "paige_show_full_pages" }} - {{ .Content }} - {{ else }} - {{ .Content | replaceRE `()` `${1}#${3}` | safeHTML }} - {{ end }} -
-
-
-
+
+ {{ if .Scratch.Get "paige_show_full_pages" }} + {{ .Content }} + {{ else }} + {{ .Content | replaceRE `()` `${1}#${3}` | safeHTML }} + {{ end }}
{{ end }} diff --git a/layouts/partials/paige/metadata.html b/layouts/partials/paige/metadata.html index d700b306..34aea251 100644 --- a/layouts/partials/paige/metadata.html +++ b/layouts/partials/paige/metadata.html @@ -1,4 +1,4 @@ -
+