From f00db61ac9956b9318708fe66ebe3010dafae974 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 11 Oct 2023 21:03:56 -0700 Subject: [PATCH] Add file_link example --- exampleSite/content/customization/_index.md | 4 ++++ exampleSite/content/customization/show.md | 4 ++++ exampleSite/content/customization/style.md | 6 ++++++ exampleSite/hugo.toml | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/exampleSite/content/customization/_index.md b/exampleSite/content/customization/_index.md index 8d4694a1..a1b849c5 100644 --- a/exampleSite/content/customization/_index.md +++ b/exampleSite/content/customization/_index.md @@ -3,6 +3,8 @@ authors: ["will-faught"] categories: ["customization", "paige"] description: "Demonstrations of Paige customization." paige: + file_link: + disable: false style: | #paige-authors, #paige-credit, @@ -35,6 +37,8 @@ This page has the following parameters: ```yaml paige: + file_link: + disable: false style: | #paige-authors, #paige-credit, diff --git a/exampleSite/content/customization/show.md b/exampleSite/content/customization/show.md index 09578d34..dc1377ef 100644 --- a/exampleSite/content/customization/show.md +++ b/exampleSite/content/customization/show.md @@ -4,6 +4,8 @@ categories: ["customization", "paige"] date: "2023-02-01" description: "Demonstration of Paige customization that shows data." paige: + file_link: + disable: false style: | #paige-authors, #paige-credit, @@ -36,6 +38,8 @@ This page has the following parameters: ```yaml paige: + file_link: + disable: false style: | #paige-authors, #paige-credit, diff --git a/exampleSite/content/customization/style.md b/exampleSite/content/customization/style.md index 8c0a1633..1e07d4ba 100644 --- a/exampleSite/content/customization/style.md +++ b/exampleSite/content/customization/style.md @@ -4,6 +4,8 @@ categories: ["customization", "paige"] date: "2023-01-01" description: "Demonstration of Paige customization that styles data." paige: + file_link: + disable: false style: | #paige-authors, #paige-credit, @@ -25,6 +27,7 @@ paige: #paige-content { font-style: italic; } #paige-date { font-style: italic; } #paige-description { font-style: italic; } + #paige-file-link { font-style: italic; } #paige-keywords { font-style: italic; } #paige-reading-time { font-style: italic; } #paige-series { font-style: italic; } @@ -54,6 +57,8 @@ This page has the following parameters: ```yaml paige: + file_link: + disable: false style: | #paige-authors, #paige-credit, @@ -75,6 +80,7 @@ paige: #paige-content { font-style: italic; } #paige-date { font-style: italic; } #paige-description { font-style: italic; } + #paige-file-link { font-style: italic; } #paige-keywords { font-style: italic; } #paige-reading-time { font-style: italic; } #paige-series { font-style: italic; } diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 63b7b4a8..e70276f6 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -108,6 +108,11 @@ url = "https://willfaught.com/paige" managing_editor = "will.faught@example.com (Will Faught)" web_master = "will.faught@example.com (Will Faught)" +[params.paige.file_link] +content = "Edit this page" +disable = true +url = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s" + [taxonomies] author = "authors" category = "categories"