diff --git a/docs/assets/css/custom.css b/docs/assets/css/custom.css
index 2b5c8b182d54..9ba59d75935f 100644
--- a/docs/assets/css/custom.css
+++ b/docs/assets/css/custom.css
@@ -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;
}
diff --git a/docs/content/docs/_index.md b/docs/content/docs/_index.md
index 899b62396f37..f557fee302df 100644
--- a/docs/content/docs/_index.md
+++ b/docs/content/docs/_index.md
@@ -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!
-{{< hextra/hero-button text="Donate ❤️" link="https://donate.golangci.org" >}}
+{{< hextra/hero-button text="Donate ❤️" link="/docs/donate" >}}
## Contributors
diff --git a/docs/content/docs/donate/_index.md b/docs/content/docs/donate/_index.md
new file mode 100644
index 000000000000..68c43b8b065a
--- /dev/null
+++ b/docs/content/docs/donate/_index.md
@@ -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 >}}
diff --git a/docs/content/docs/product/changelog.md b/docs/content/docs/product/changelog.md
index 3962de6de2dd..044807b9c84c 100644
--- a/docs/content/docs/product/changelog.md
+++ b/docs/content/docs/product/changelog.md
@@ -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!
-{{< hextra/hero-button text="Donate ❤️" link="https://donate.golangci.org" >}}
+{{< hextra/hero-button text="Donate ❤️" link="/docs/donate" >}}
{{% embed file=".tmp/raw_changelog.tmp" %}}
diff --git a/docs/content/docs/product/thanks.md b/docs/content/docs/product/thanks.md
index 3ba62c9256b9..3f4ae9e563f0 100644
--- a/docs/content/docs/product/thanks.md
+++ b/docs/content/docs/product/thanks.md
@@ -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
diff --git a/docs/data/icons.yaml b/docs/data/icons.yaml
new file mode 100644
index 000000000000..2c4b978e1147
--- /dev/null
+++ b/docs/data/icons.yaml
@@ -0,0 +1 @@
+heart-red:
diff --git a/docs/hugo.yaml b/docs/hugo.yaml
index 0ec98f032782..38bb6c222b2b 100644
--- a/docs/hugo.yaml
+++ b/docs/hugo.yaml
@@ -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/
@@ -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:
diff --git a/docs/layouts/_partials/author-cards.html b/docs/layouts/_partials/author-cards.html
deleted file mode 100644
index aeb8c3c43dcb..000000000000
--- a/docs/layouts/_partials/author-cards.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{/* Modified version of https://github.com/imfing/hextra/blob/v0.9.7/layouts/partials/shortcodes/cards.html */}}
-{{- $cols := .cols | default 3 -}}
-{{- $content := .content -}}
-
-
- {{- $content -}}
-
diff --git a/docs/layouts/_partials/custom-cards.html b/docs/layouts/_partials/custom-cards.html
new file mode 100644
index 000000000000..4dd8b2e44230
--- /dev/null
+++ b/docs/layouts/_partials/custom-cards.html
@@ -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" -}}
+
+
+ {{- $content -}}
+
diff --git a/docs/layouts/_shortcodes/author-cards.html b/docs/layouts/_shortcodes/custom-cards.html
similarity index 51%
rename from docs/layouts/_shortcodes/author-cards.html
rename to docs/layouts/_shortcodes/custom-cards.html
index 49003a8786d0..aed2e3f2ecce 100644
--- a/docs/layouts/_shortcodes/author-cards.html
+++ b/docs/layouts/_shortcodes/custom-cards.html
@@ -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) -}}
diff --git a/docs/static/images/github-sponsors.svg b/docs/static/images/github-sponsors.svg
new file mode 100644
index 000000000000..4f1e3f367ba7
--- /dev/null
+++ b/docs/static/images/github-sponsors.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/static/images/open-collective.svg b/docs/static/images/open-collective.svg
new file mode 100644
index 000000000000..c8b3db1ba1d8
--- /dev/null
+++ b/docs/static/images/open-collective.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/static/images/thanks-dev.svg b/docs/static/images/thanks-dev.svg
new file mode 100644
index 000000000000..141befa70355
--- /dev/null
+++ b/docs/static/images/thanks-dev.svg
@@ -0,0 +1,32 @@
+
+