diff --git a/README.md b/README.md
index 8845dcec..80d8cff5 100644
--- a/README.md
+++ b/README.md
@@ -176,6 +176,7 @@ There is a single parameter object with sensible defaults that can be overridden
[paige]
color = "#0d6efd" # Bootstrap primary color and theme color for Safari and Windows
color_scheme = "auto" # Must be "auto", "dark", or "light"
+credit = 'Paige Theme'
date_format = ":date_long" # Hugo date format
external_link_new_tab = false # Open external links in new tabs
file_edit_url = "" # Example: "https://github.com/account/project/edit/master/content/%s"
@@ -1145,8 +1146,6 @@ Shortcode classes:
The container element of paige/youtube
shortcodes.
-If you hide `#paige-credit`, please credit this project in a post to help others find it.
-
### Minimal look
By default, everything is shown.
@@ -1156,7 +1155,6 @@ try the following in `yoursite/layouts/partials/paige/style-first.css`:
```css
#paige-authors,
#paige-collections,
-#paige-credit,
#paige-keywords,
#paige-prev-next,
#paige-reading-time,
diff --git a/exampleSite/content/customizations/_index.md b/exampleSite/content/customizations/_index.md
index e961238e..c72cda8d 100644
--- a/exampleSite/content/customizations/_index.md
+++ b/exampleSite/content/customizations/_index.md
@@ -6,9 +6,9 @@ series = ["series-demo"]
tags = ["sections"]
title = "Customizations"
[paige]
+credit = "Paige Theme"
style = """
#paige-authors,
-#paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
@@ -36,11 +36,11 @@ This page has the following parameters:
```yaml
paige:
+ credit: "Paige Theme"
file_link:
disable: false
style: |
#paige-authors,
- #paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
diff --git a/exampleSite/content/customizations/show.md b/exampleSite/content/customizations/show.md
index 5d0ab66f..2a4e04b4 100644
--- a/exampleSite/content/customizations/show.md
+++ b/exampleSite/content/customizations/show.md
@@ -7,9 +7,9 @@ series = ["series-demo"]
tags = ["show", "singles"]
title = "Show Data"
[paige]
+credit = "Paige Theme"
style = """
#paige-authors,
-#paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
@@ -38,11 +38,11 @@ This page has the following parameters:
```yaml
paige:
+ credit: "Paige Theme"
file_link:
disable: false
style: |
#paige-authors,
- #paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
diff --git a/exampleSite/content/customizations/style.md b/exampleSite/content/customizations/style.md
index 85cb4f54..53723806 100644
--- a/exampleSite/content/customizations/style.md
+++ b/exampleSite/content/customizations/style.md
@@ -7,9 +7,9 @@ series = ["series-demo"]
tags = ["singles", "style"]
title = "Style Data"
[paige]
+credit = "Paige Theme"
style = """
#paige-authors,
-#paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
@@ -36,7 +36,6 @@ style = """
#paige-title { font-style: italic; }
#paige-toc { font-style: italic; }
#paige-copyright { font-style: italic; }
-#paige-credit { font-style: italic; }
.paige-authors { font-style: italic; }
.paige-date { font-style: italic; }
.paige-keyword { font-style: italic; }
@@ -55,11 +54,11 @@ This page has the following parameters:
```yaml
paige:
+ credit: "Paige Theme"
file_link:
disable: false
style: |
#paige-authors,
- #paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
@@ -86,7 +85,6 @@ paige:
#paige-title { font-style: italic; }
#paige-toc { font-style: italic; }
#paige-copyright { font-style: italic; }
- #paige-credit { font-style: italic; }
.paige-authors { font-style: italic; }
.paige-date { font-style: italic; }
.paige-keyword { font-style: italic; }
diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml
index c5026d02..72725ed8 100644
--- a/exampleSite/hugo.toml
+++ b/exampleSite/hugo.toml
@@ -91,6 +91,7 @@ taxonomy = ["html"]
term = ["html"]
[params.paige]
+credit = ""
file_edit_url = "https://github.com/willfaught/paige/edit/master/exampleSite/content/%s"
file_history_url = "https://github.com/willfaught/paige/commits/master/exampleSite/content/%s"
site_description = "Powerful, pliable pixel perfection"
diff --git a/exampleSite/layouts/partials/paige/style-first.css b/exampleSite/layouts/partials/paige/style-first.css
index 3550a40b..4035520c 100644
--- a/exampleSite/layouts/partials/paige/style-first.css
+++ b/exampleSite/layouts/partials/paige/style-first.css
@@ -1,6 +1,5 @@
#paige-authors,
#paige-breadcrumbs,
-#paige-credit,
#paige-date,
#paige-file,
#paige-keywords,
diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html
index be6b8b9a..3f090c5f 100644
--- a/layouts/partials/paige/footer.html
+++ b/layouts/partials/paige/footer.html
@@ -1,12 +1,19 @@
{{ $page := . }}
{{ $copyright := site.Copyright | markdownify }}
+{{ $credit := $page.Param "paige.credit" }}
{{ $theme := "https://github.com/willfaught/paige" }}
{{ $fileediturl := $page.Param "paige.file_edit_url" }}
{{ $filehistoryurl := $page.Param "paige.file_history_url" }}
{{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }}
+{{ if eq $credit nil }}
+ {{ $credit = `Paige Theme` | markdownify }}
+{{ else }}
+ {{ $credit = markdownify $credit }}
+{{ end }}
+
{{ if $page.File }}
{{ if $fileediturl }}
{{ $fileediturl = printf $fileediturl $page.File.Path }}
@@ -58,9 +65,9 @@
{{ . }}
{{ end }}
-
- Paige Theme
-
+ {{ with $credit }}
+ {{ . }}
+ {{ end }}
{{ if templates.Exists "partials/paige/footer-last.html" }}
{{ partial "paige/footer-last.html" . }}