Remove paige.credit.link

master
Will Faught 2 years ago
parent 73394c84c8
commit fcdefec8c2

@ -247,8 +247,6 @@ paige:
credit: credit:
data: data:
hide: false # Don't credit this project in a data attribute hide: false # Don't credit this project in a data attribute
link:
hide: false # Don't credit this project in the footer
date: date:
format: ":date_long" # Hugo date format format: ":date_long" # Hugo date format
source: "published" # Displayed date in single pages; must be "published" or "modified" source: "published" # Displayed date in single pages; must be "published" or "modified"
@ -272,7 +270,7 @@ paige:
The assigned values shown are the default values. The assigned values shown are the default values.
If you set `paige.credit.data.hide` or `paige.credit.link.hide`, please credit this project in a post to help others find it. If you set `paige.credit.data.hide`, please credit this project in a post to help others find it.
### Site parameters ### Site parameters
@ -831,6 +829,8 @@ Use these CSS selectors to extend the default styling:
<dd>Applied to the title of unpublished (draft, expired, future) pages in the list and term layouts.</dd> <dd>Applied to the title of unpublished (draft, expired, future) pages in the list and term layouts.</dd>
</dl> </dl>
If you hide `#paige-credit`, please credit this project in a post to help others find it.
## Design ## Design
The HTML author is the page authors. The HTML author is the page authors.

@ -1,23 +1,20 @@
{{ $page := . }} {{ $page := . }}
{{ $copyright := site.Copyright | markdownify }} {{ $copyright := site.Copyright | markdownify }}
{{ $credit := $page.Param "paige.credit.link.hide" | not }}
{{ $first := templates.Exists "partials/paige/footer-first.html" }} {{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }} {{ $last := templates.Exists "partials/paige/footer-last.html" }}
{{ if or $copyright $credit $first $last }} {{ if or $copyright $first $last }}
<footer id="paige-footer"> <footer id="paige-footer">
{{ if $first }} {{ if $first }}
{{ partial "paige/footer-first.html" . }} {{ partial "paige/footer-first.html" . }}
{{ end }} {{ end }}
{{ with $copyright }} {{ with $copyright }}
<p class="{{ if $credit }} mb-0 {{ end }} text-center text-secondary" id="paige-copyright">{{ . }}</p> <p class="mb-0 text-center text-secondary" id="paige-copyright">{{ . }}</p>
{{ end }} {{ end }}
{{ if $credit }} <p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige" id="paige-credit">Paige Theme</a></p>
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige" id="paige-credit">Paige Theme</a></p>
{{ end }}
{{ if $last }} {{ if $last }}
{{ partial "paige/footer-last.html" . }} {{ partial "paige/footer-last.html" . }}

Loading…
Cancel
Save