Skip to content

Commit d43d4a2

Browse files
committed
website: support disabling sponsors
1 parent db60d3e commit d43d4a2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

website/content/sponsors.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ The companies supporting Staticcheck are, in alphabetical order:
2828

2929
<ul>
3030
{{ range $sponsor := sort $sponsors "name" "asc" }}
31+
{{ if $sponsor.enabled }}
3132
<li><a href="{{ $sponsor.url }}">{{ $sponsor.name }}</a></li>
3233
{{ end }}
34+
{{ end }}
3335
</ul>
3436
{{ end }}
3537
{{< /sponsors.inline >}}

website/layouts/partials/footer.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ <h1 class="text-center col-12"><a href="/sponsors">Sponsors</a></h1>
4848
<div class="row section" style="margin-left: auto; margin-right: auto;">
4949
<div class="row align-items-center justify-content-center h-100">
5050
{{ range $sponsor := sort $sponsors "name" "asc" }}
51+
{{ if $sponsor.enabled }}
5152
{{ partial "sponsor-logo" (dict "name" $sponsor.name "url" $sponsor.url "logo" $sponsor.logo) }}
5253
{{ end }}
54+
{{ end }}
5355
</div>
5456
</div>
5557
</section>

0 commit comments

Comments
 (0)