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:
@@ -1 +1 @@
|
||||
<small>{{ .Site.Title }} - {{ .Site.Copyright | .RenderString }}</small>
|
||||
<small>{{ .Site.Title }} - {{ default .Site.Copyright .Params.Copyright | .RenderString }}</small>
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user