Skip to content

Commit c8d2d1b

Browse files
committed
website: move list of copyrights to external file
1 parent b37b29e commit c8d2d1b

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
/website/resources
1111
/website/assets/img/sponsors
1212
/website/data/sponsors.toml
13+
/website/data/copyrights.toml

website/config.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ unsafe = true
3737
style = "tango"
3838

3939
[params]
40-
copyrights = [
41-
"© 2019 Dominik Honnef All Rights Reserved.",
42-
"© 2018 Google LLC All rights reserved. Google and the Google logo are registered trademarks of Google LLC.",
43-
"The Staticcheck logo was designed by <a href='https://egonelbre.com/'>Egon Elbre</a> and is based on the Go gopher, which was designed by <a href='http://reneefrench.blogspot.com/'>Renee French</a> and is licensed under the Creative Commons 3.0 Attributions license.",
44-
]
4540
description = 'Staticcheck is a state of the art linter for the Go programming language'
4641
images = ['/img/logo.webp']
4742
title = 'Staticcheck'

website/layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ <h1 class="text-center col-12"><a href="/sponsors">Sponsors</a></h1>
6060
<div class="container-fluid mx-sm-5">
6161
<div class="row">
6262
<div class="col-12">
63-
{{ range $cp := .Site.Params.copyrights }}
63+
{{ range $cp := .Site.Data.copyrights.copyrights }}
6464
<small class="text-white">{{ $cp | safeHTML }}</small><br>
6565
{{ end }}
6666
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}">{{ T "footer_privacy_policy" }}</a></small>{{ end }}

0 commit comments

Comments
 (0)