From b56f93739e6a468c72904bb7d294ec3949f72045 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Thu, 23 Feb 2023 20:05:45 -0800 Subject: [PATCH] Add configuration section --- exampleSite/config.yaml | 10 ++- exampleSite/content/configuration/_index.md | 69 ++++++++++++++++++ exampleSite/content/configuration/hide.md | 50 +++++++++++++ exampleSite/content/configuration/style.md | 80 +++++++++++++++++++++ exampleSite/content/layouts/home.md | 5 +- 5 files changed, 209 insertions(+), 5 deletions(-) create mode 100644 exampleSite/content/configuration/_index.md create mode 100644 exampleSite/content/configuration/hide.md create mode 100644 exampleSite/content/configuration/style.md diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 972eea41..36edeba6 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -22,18 +22,22 @@ languages: name: Shortcodes url: /shortcodes/ weight: 40 + - identifier: configuration + name: Configuration + url: /configuration/ + weight: 50 - identifier: categories name: Categories url: /categories/ - weight: 50 + weight: 60 - identifier: tags name: Tags url: /tags/ - weight: 60 + weight: 70 - identifier: search name: Search url: /search/ - weight: 70 + weight: 80 weight: 10 markup: goldmark: diff --git a/exampleSite/content/configuration/_index.md b/exampleSite/content/configuration/_index.md new file mode 100644 index 00000000..db13f0fb --- /dev/null +++ b/exampleSite/content/configuration/_index.md @@ -0,0 +1,69 @@ +--- +authors: ["will_faught"] +categories: ["configuration", "paige"] +date: "2022-02-23" +description: "Demonstration of the Paige configuration." +paige: + list: + authors: + hide: false + date: + hide: false + date_header: + hide: false + reading_time: + hide: false + summary: + hide: false + terms: + hide: false + main: + metadata: + authors: + hide: false + date: + hide: false + reading_time: + hide: false + terms: + hide: false + table_of_contents: + hide: false +tags: ["lists"] +title: "Configuration" +--- + +This site hides some list page data by default. This page shows it all. + + + +This page has the following parameters: + +```yaml +paige: + list: + authors: + hide: false + date: + hide: false + date_header: + hide: false + reading_time: + hide: false + summary: + hide: false + terms: + hide: false + main: + metadata: + authors: + hide: false + date: + hide: false + reading_time: + hide: false + terms: + hide: false + table_of_contents: + hide: false +``` diff --git a/exampleSite/content/configuration/hide.md b/exampleSite/content/configuration/hide.md new file mode 100644 index 00000000..94017f6a --- /dev/null +++ b/exampleSite/content/configuration/hide.md @@ -0,0 +1,50 @@ +--- +authors: ["will_faught"] +categories: ["configuration", "paige"] +date: "2022-02-23" +description: "Demonstration of the Paige hide configuration." +paige: + main: + metadata: + authors: + hide: false + date: + hide: false + git: + commit_url_prefix: "https://github.com/willfaught/paige/commit/" + reading_time: + hide: false + terms: + hide: false + table_of_contents: + hide: false +tags: ["hide", "singles"] +title: "Hide Configuration" +weight: 10 +--- + +This site hides some single page data by default. This page shows it all. + + + +## Parameters + +This page has the following parameters: + +```yaml +paige: + main: + metadata: + authors: + hide: false + date: + hide: false + git: + commit_url_prefix: "https://github.com/willfaught/paige/commit/" + reading_time: + hide: false + terms: + hide: false + table_of_contents: + hide: false +``` diff --git a/exampleSite/content/configuration/style.md b/exampleSite/content/configuration/style.md new file mode 100644 index 00000000..1d4a25f6 --- /dev/null +++ b/exampleSite/content/configuration/style.md @@ -0,0 +1,80 @@ +--- +authors: ["will_faught"] +categories: ["configuration", "paige"] +date: "2022-02-23" +description: "Demonstration of the Paige style configuration." +paige: + main: + metadata: + authors: + class: "fst-italic text-center text-secondary" + hide: false + date: + class: "fst-italic text-center text-secondary" + hide: false + description: + class: "fst-italic lead text-center" + hide: false + git: + commit_url_prefix: "https://github.com/willfaught/paige/commit/" + reading_time: + class: "fst-italic text-center text-secondary" + hide: false + terms: + hide: false + inner_class: "badge bg-secondary fst-italic text-decoration-none" + outer_class: "text-center" + title: + class: "display-5 fst-italic fw-bold text-center" + hide: false + table_of_contents: + class: "border fst-italic mb-3 pe-3 ps-3 pt-3 rounded" + hide: false + content: + class: "fst-italic mw-100 paige-content" + hide: false +tags: ["singles", "style"] +title: "Style Configuration" +weight: 20 +--- + +This site uses the default styles on the other pages. This page changes them. + + + +## Parameters + +This page has the following parameters: + +```yaml +paige: + main: + metadata: + authors: + class: "fst-italic text-center text-secondary" + hide: false + date: + class: "fst-italic text-center text-secondary" + hide: false + description: + class: "fst-italic lead text-center" + hide: false + git: + commit_url_prefix: "https://github.com/willfaught/paige/commit/" + reading_time: + class: "fst-italic text-center text-secondary" + hide: false + terms: + hide: false + inner_class: "badge bg-secondary fst-italic text-decoration-none" + outer_class: "text-center" + title: + class: "display-5 fst-italic fw-bold text-center" + hide: false + table_of_contents: + class: "border fst-italic mb-3 pe-3 ps-3 pt-3 rounded" + hide: false + content: + class: "fst-italic mw-100 paige-content" + hide: false +``` diff --git a/exampleSite/content/layouts/home.md b/exampleSite/content/layouts/home.md index 405f6e72..c193a018 100644 --- a/exampleSite/content/layouts/home.md +++ b/exampleSite/content/layouts/home.md @@ -118,8 +118,7 @@ These are the parameters for this page: ```yaml --- authors: ["will_faught"] -categories: ["paige"] -date: "2023-02-22" +categories: ["layouts", "paige"] description: "Demonstration of the Paige home layout." layout: "paige/home" paige: @@ -223,6 +222,8 @@ paige: bootstrap_icon: "youtube" name: "YouTube" url: "https://youtube.com/user/username" +tags: ["home"] title: "Home Layout" +weight: 10 --- ```