Add theme link and comment

master
Will Faught 3 years ago
parent 17731412a1
commit da47e03ea9

@ -92,6 +92,11 @@ If `partials/paige_head_last.html` exists in the site, it is included at
the end of the head tag. If `partials/paige_body_last.html` exists in the end of the head tag. If `partials/paige_body_last.html` exists in
the site, it is included at the end of the body tag. the site, it is included at the end of the body tag.
To hide the theme link, set the site parameter `paigehidethemelink` to
true. To hide the theme comment, set the site parameter
`paigehidethemecomment` to true. If you hide either of these, please
credit this project and its author in a post so others may find it.
Bootstrap 5.2.2 CSS and JavaScript and Bootstrap Icons 1.10.2 are loaded Bootstrap 5.2.2 CSS and JavaScript and Bootstrap Icons 1.10.2 are loaded
from the Bootstrap CDN for every page. from the Bootstrap CDN for every page.

@ -34,6 +34,9 @@ menu:
weight: 70 weight: 70
url: /tags/ url: /tags/
paginate: 50 paginate: 50
params:
paigehidethemecomment: true
paigehidethemelink: true
permalinks: permalinks:
blog: /blog/:year/:month/:day/:title/ blog: /blog/:year/:month/:day/:title/
social: social:

@ -21,3 +21,6 @@
{{ end }} {{ end }}
</body> </body>
</html> </html>
{{ if not .Site.Params.paigehidethemecomment }}
{{ printf "<!-- Paige theme from https://github.com/willfaught/paige -->" | safeHTML }}
{{ end }}

@ -1,5 +1,11 @@
{{ if .Site.Copyright }} {{ if or .Site.Copyright (not .Site.Params.paigehidethemelink) }}
<footer> <footer>
{{ if and .Site.Copyright (not .Site.Params.paigehidethemelink) }}
<p class="text-center text-muted">{{ .Site.Copyright | markdownify }} · <a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ else if .Site.Copyright }}
<p class="text-center text-muted">{{ .Site.Copyright | markdownify }}</p> <p class="text-center text-muted">{{ .Site.Copyright | markdownify }}</p>
{{ else if (not .Site.Params.paigehidethemelink) }}
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ end }}
</footer> </footer>
{{ end }} {{ end }}

Loading…
Cancel
Save