Allow overriding the site global copyright with page local params (#810)

This is useful when certain sub pages may have a different copyright
than the entire rest of the site.
This commit is contained in:
Levente Polyak
2026-04-08 13:39:43 +02:00
committed by GitHub
parent 4f0e89c4ed
commit 97d7ee40ed
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -71,7 +71,7 @@
{{ end }}
{{ define "copyright" }}
{{ if .Site.Copyright }}
{{ if or .Site.Copyright .Params.Copyright }}
<div class="book-copyright flex justify-center">
{{ partial "docs/copyright" . }}
</div>