From ada7e4c8c17a6863fa21ad925cd86869767be3da Mon Sep 17 00:00:00 2001
From: Will Faught
Date: Wed, 17 Jul 2024 18:25:34 -0700
Subject: [PATCH] Use config to hide values
---
README.md | 169 ++++++++++-------
exampleSite/content/_index.md | 21 +--
exampleSite/content/customizations/_index.md | 87 +++++----
exampleSite/content/customizations/show.md | 91 ++++-----
exampleSite/content/customizations/style.md | 149 ++++++++-------
exampleSite/hugo.toml | 39 +++-
.../layouts/partials/paige/style-first.css | 17 --
layouts/_default/baseof.html | 24 ++-
layouts/partials/paige/list-item.html | 42 ++---
layouts/partials/paige/list.html | 6 +-
layouts/partials/paige/page-footer.html | 37 ++--
layouts/partials/paige/page-header.html | 174 +++++++++---------
layouts/partials/paige/page.html | 16 +-
layouts/partials/paige/site-footer.html | 16 +-
layouts/partials/paige/site-header.html | 24 +--
layouts/partials/paige/style.html | 12 +-
layouts/partials/paige/tag-body.html | 2 +-
layouts/partials/paige/tag-head.html | 4 +-
18 files changed, 501 insertions(+), 429 deletions(-)
diff --git a/README.md b/README.md
index b9ba3604..322ab05a 100644
--- a/README.md
+++ b/README.md
@@ -178,6 +178,7 @@ color = "#0d6efd" # Bootstrap primary color and theme color for Safari and Windo
color_scheme = "auto" # Must be "auto", "dark", or "light"
credit = 'Paige Theme'
date_format = ":date_long" # Hugo date format
+description = "" # Site description. Appears above the menu, below the site title, if set.
external_link_new_tab = false # Open external links in new tabs
file_edit_url = "" # Example: "https://github.com/account/project/edit/master/content/%s"
file_history_url = "" # Example: "https://github.com/account/project/commits/master/content/%s"
@@ -185,8 +186,7 @@ keyword_style = "text" # Must be "text" or "pills"
license = "" # Example: "CC BY 4.0 License", "CC BY-NC 4.0 License", "MIT License"
math = false # Enable math typesetting
menu_style = "links" # Must be "links", "pills", "tabs", or "underline"
-site_title = "" # Appears above the menu, above the site description, if set
-site_description = "" # Appears above the menu, below the site title, if set
+title = "" # Site title. Appears above the menu, above the site description, if set.
style = "" # CSS included at the end of the stylesheet, before style-last.css
[paige.alert]
@@ -292,6 +292,43 @@ logo = "" # Example: "/logo.webp"
managing_editor = "" # Example: "example@example.com (John Doe)"
web_master = "" # Example: "example@example.com (John Doe)"
+[params.paige.list_page]
+hide_authors = false
+hide_collections = false
+hide_date = false
+hide_description = false
+hide_keywords = false
+hide_pages = false
+hide_reading_time = false
+hide_sections = false
+hide_series = false
+hide_summary = false
+hide_title = false
+
+[params.paige.page]
+hide_alert = false
+hide_authors = false
+hide_date = false
+hide_description = false
+hide_edit = false
+hide_history = false
+hide_keywords = false
+hide_next = false
+hide_prev = false
+hide_reading_time = false
+hide_series = false
+hide_title = false
+hide_toc = false
+
+[params.paige.site]
+hide_breadcrumbs = false
+hide_copyright = false
+hide_credit = false
+hide_description = false
+hide_license = false
+hide_menu = false
+hide_title = false
+
[paige.search]
hide_page = false
```
@@ -907,14 +944,16 @@ Body: None.
| ---------------------------------------------------------| -------------------------------------|
| `yoursite/layouts/partials/paige/body-first.html` | The beginning of the body tag |
| `yoursite/layouts/partials/paige/body-last.html` | The end of the body tag |
-| `yoursite/layouts/partials/paige/footer-first.html` | The beginning of the footer tag |
-| `yoursite/layouts/partials/paige/footer-last.html` | The end of the footer tag |
| `yoursite/layouts/partials/paige/head-first.html` | The beginning of the head tag |
| `yoursite/layouts/partials/paige/head-last.html` | The end of the head tag |
-| `yoursite/layouts/partials/paige/main-first.html` | The beginning of the main tag |
-| `yoursite/layouts/partials/paige/main-last.html` | The end of the main tag |
+| `yoursite/layouts/partials/paige/page-footer-first.html` | The beginning of the page footer tag |
+| `yoursite/layouts/partials/paige/page-footer-last.html` | The end of the page footer tag |
| `yoursite/layouts/partials/paige/page-header-first.html` | The beginning of the page header tag |
| `yoursite/layouts/partials/paige/page-header-last.html` | The end of the page header tag |
+| `yoursite/layouts/partials/paige/site-first.html` | The beginning of the main tag |
+| `yoursite/layouts/partials/paige/site-last.html` | The end of the main tag |
+| `yoursite/layouts/partials/paige/site-footer-first.html` | The beginning of the site footer tag |
+| `yoursite/layouts/partials/paige/site-footer-last.html` | The end of the site footer tag |
| `yoursite/layouts/partials/paige/site-header-first.html` | The beginning of the site header tag |
| `yoursite/layouts/partials/paige/site-header-last.html` | The end of the site header tag |
| `yoursite/layouts/partials/paige/style-first.css` | The beginning of the style tag |
@@ -986,81 +1025,79 @@ Page identifiers:
#paige-alert
The page alert.
-
#paige-article
-
The article.
#paige-authors
-
The authors.
+
The page authors.
#paige-breadcrumbs
-
The breadcrumbs.
+
The site breadcrumbs.
#paige-collections
-
The collections.
+
The site collection pages.
#paige-collections-header
-
The collections header.
+
The site collection pages header.
#paige-comments
-
The comments.
+
The page comments.
#paige-content
-
The content.
+
The page content.
#paige-copyright
-
The copyright.
+
The site copyright.
#paige-credit
-
The credit.
+
The site credit.
#paige-date
-
The date.
-
#paige-description
-
The description.
+
The page date.
+
#paige-edit
+
The page edit link.
#paige-file
-
The file links.
-
#paige-file-edit
-
The file edit link.
-
#paige-file-history
-
The file history link.
+
The page edit and history links.
+
#paige-history
+
The page history link.
#paige-keywords
-
The keywords.
+
The page keywords.
#paige-license
-
The license.
-
#paige-main
-
The main.
+
The site license.
#paige-menu
-
The menu.
+
The site menu.
#paige-metadata
-
The metadata.
+
The page metadata.
#paige-next
The next page link.
+
#paige-page-description
+
The page description.
+
#paige-page-footer
+
The page footer that contains the page edit, history, next, and previous links.
+
#paige-page-header
+
The page header that contains the page title, description, metadata, and table of contents.
+
#paige-page-title
+
The page title.
#paige-pages
-
The pages.
+
The page sub-pages.
#paige-pages-header
-
The pages header.
+
The page sub-pages header.
#paige-pagination
-
The sub-page pagination links.
+
The pagination of sub-pages.
#paige-prev
The previous page link.
-
#paige-prev-next
-
The container of the previous and next page links.
#paige-reading-time
-
The reading time.
-
#paige-root
-
The outermost element in the body.
+
The page reading time.
#paige-sections
-
The sections.
+
The page section sub-pages.
#paige-sections-header
-
The sections header.
+
The page section sub-pages header.
#paige-series
-
The series.
+
The page series.
+
#paige-siblings
+
The page next and previous links.
#paige-site-description
The site description.
#paige-site-footer
-
The container of the site copyright, license, and credit.
+
The site footer that contains the site copyright, license, and credit.
#paige-site-header
The site header that contains the site title, description, menu, and breadcrumbs.
#paige-site-title
The site title.
-
#paige-title
-
The title.
#paige-toc
The table of contents.
-Page and sub-page classes:
+Sub-page field classes: