Skip to content

Commit 4238491

Browse files
authored
In footer, derive copyright from author name (#374)
Hugo 0.120 changed the name author is specified: gohugoio/hugo@d4016dd
1 parent 5738142 commit 4238491

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

doc/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ markup:
1010
noClasses: false
1111

1212
params:
13+
author:
14+
name: "Scientific Python team"
1315
description: "Documentation & template site for the Scientific Python Hugo Theme."
1416
images:
1517
- /images/logo.svg

layouts/partials/footer.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- $title := .Site.Params.title }}
1+
{{- $title := .Site.Title }}
2+
{{- $author := .Site.Params.author.name }}
23
{{- $footer := .Site.Params.footer }}
34
{{- $logo := index $footer "logo" }}
45
{{- $quickLinks := index $footer "quicklinks" }}
@@ -43,7 +44,7 @@
4344
{{- end }}
4445
</div>
4546
</nav>
46-
<div class="copyright">&copy; {{ now.Year}} {{ $title }}. All rights reserved.</div>
47+
<div class="copyright">&copy; {{ now.Year}} {{ $author }}. All rights reserved.</div>
4748
</div>
4849
</div>
4950
</div>

0 commit comments

Comments
 (0)