Skip to content

docs: dedicated donation page #5998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
grid-template-columns: repeat(auto-fill, minmax(max(150px, calc((100% - 1rem * 4) / var(--hextra-cards-grid-cols))), 1fr));
}

.support-cards {
grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 1rem * 4) / var(--hextra-cards-grid-cols))), 1fr));
}

.support-cards .hextra-card-image {
margin: 2rem;
}

.gl-hidden {
display: none;
}
2 changes: 1 addition & 1 deletion docs/content/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Golangci-lint is a free and open-source project built by volunteers.
If you value it, consider supporting us, we appreciate it!

<div class="hx-mt-6 hx-mb-6">
{{< hextra/hero-button text="Donate ❤️" link="https://donate.golangci.org" >}}
{{< hextra/hero-button text="Donate ❤️" link="/docs/donate" >}}
</div>

## Contributors
Expand Down
18 changes: 18 additions & 0 deletions docs/content/docs/donate/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Support Us
weight: 8
aliases:
- /donate/
---

Golangci-lint is a free and open-source project built by volunteers.

If you value it, consider supporting us, we appreciate it! ❤️

You can support us via:

{{< custom-cards mainClass="support-cards" cols=7 >}}
{{< card link="https://github.com/sponsors/golangci" title="GitHub Sponsors" subtitle="Credit card" image="/images/github-sponsors.svg" >}}
{{< card link="https://opencollective.com/golangci-lint" title="Open Collective" subtitle="Credit card, PayPal, etc." image="/images/open-collective.svg" >}}
{{< card link="https://thanks.dev/u/gh/golangci" title="Thanks.dev" subtitle="Credit card" image="/images/thanks-dev.svg" >}}
{{< /custom-cards >}}
2 changes: 1 addition & 1 deletion docs/content/docs/product/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Follow the news and releases on [Mastodon](https://fosstodon.org/@golangcilint)
If you value it, consider supporting us, we appreciate it!

<div class="hx-mt-6 hx-mb-6">
{{< hextra/hero-button text="Donate ❤️" link="https://donate.golangci.org" >}}
{{< hextra/hero-button text="Donate ❤️" link="/docs/donate" >}}
</div>

{{% embed file=".tmp/raw_changelog.tmp" %}}
4 changes: 2 additions & 2 deletions docs/content/docs/product/thanks.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ aliases:

### Thanks to developers and authors of used linters

{{< author-cards cols=7 >}}
{{< custom-cards mainClass="author-cards" cols=7 >}}
{{< authors >}}
{{< /author-cards >}}
{{< /custom-cards >}}

### Thanks to all contributors

Expand Down
1 change: 1 addition & 0 deletions docs/data/icons.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
heart-red: <svg xmlns="http://www.w3.org/2000/svg" color="red" fill="red" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"/></svg>
11 changes: 3 additions & 8 deletions docs/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ menu:
pageRef: /docs
weight: 1
- identifier: donate
name: "Donate"
url: "https://donate.golangci.org"
name: "Support us"
pageRef: /docs/donate/
weight: 2
params:
icon: heart
color: green
icon: "heart-red"
- identifier: linters
name: Linters
pageRef: /docs/linters/
Expand All @@ -65,10 +64,6 @@ menu:
params:
icon: github
sidebar:
- identifier: donate
name: "Support Us"
url: "https://donate.golangci.org"
weight: 1
- identifier: more
name: More
params:
Expand Down
7 changes: 0 additions & 7 deletions docs/layouts/_partials/author-cards.html

This file was deleted.

8 changes: 8 additions & 0 deletions docs/layouts/_partials/custom-cards.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{/* Modified version of https://github.com/imfing/hextra/blob/v0.9.7/layouts/partials/shortcodes/cards.html */}}
{{- $cols := .cols | default 3 -}}
{{- $content := .content -}}
{{- $mainClass := .mainClass | default "hextra-cards" -}}

<div class="{{$mainClass}} hx-mt-4 hx-gap-4 hx-grid not-prose" style="--hextra-cards-grid-cols: {{ $cols }};">
{{- $content -}}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
{{- /*
Creates a card for each author of a linter/formatter.

@example {{< author-cards cols=7 >}}{{< authors >}}{{< /author-cards >}}
@example {{< custom-cards cols=7 >}}{{< authors >}}{{< /custom-cards >}}
*/ -}}

{{- $cols := .Get "cols" | default 3 -}}
{{- $mainClass := .Get "mainClass" | default "hextra-cards" -}}

{{- partial "author-cards" (dict "cols" $cols "content" .Inner) -}}
{{- partial "custom-cards" (dict "cols" $cols "mainClass" $mainClass "content" .Inner) -}}
1 change: 1 addition & 0 deletions docs/static/images/github-sponsors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/static/images/open-collective.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions docs/static/images/thanks-dev.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading