Remove paige.credit.link

master
Will Faught 2 years ago
parent 73394c84c8
commit fcdefec8c2

@ -247,8 +247,6 @@ paige:
credit:
data:
hide: false # Don't credit this project in a data attribute
link:
hide: false # Don't credit this project in the footer
date:
format: ":date_long" # Hugo date format
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.
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
@ -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>
</dl>
If you hide `#paige-credit`, please credit this project in a post to help others find it.
## Design
The HTML author is the page authors.

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

Loading…
Cancel
Save