Add theme link and comment

This commit is contained in:
Will Faught
2022-12-11 03:25:22 -08:00
parent 17731412a1
commit da47e03ea9
4 changed files with 18 additions and 1 deletions

View File

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

View File

@@ -1,5 +1,11 @@
{{ if .Site.Copyright }}
{{ if or .Site.Copyright (not .Site.Params.paigehidethemelink) }}
<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>
{{ 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>
{{ end }}