Skip to content

Commit 07a58b2

Browse files
committed
docs: replace author-cards with custom-cards
1 parent 2ec4b4c commit 07a58b2

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

docs/content/docs/product/thanks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ aliases:
99

1010
### Thanks to developers and authors of used linters
1111

12-
{{< author-cards cols=7 >}}
12+
{{< custom-cards mainClass="author-cards" cols=7 >}}
1313
{{< authors >}}
14-
{{< /author-cards >}}
14+
{{< /custom-cards >}}
1515

1616
### Thanks to all contributors
1717

docs/layouts/_partials/author-cards.html

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{/* Modified version of https://github.com/imfing/hextra/blob/v0.9.7/layouts/partials/shortcodes/cards.html */}}
2+
{{- $cols := .cols | default 3 -}}
3+
{{- $content := .content -}}
4+
{{- $mainClass := .mainClass | default "hextra-cards" -}}
5+
6+
<div class="{{$mainClass}} hx-mt-4 hx-gap-4 hx-grid not-prose" style="--hextra-cards-grid-cols: {{ $cols }};">
7+
{{- $content -}}
8+
</div>

docs/layouts/_shortcodes/author-cards.html renamed to docs/layouts/_shortcodes/custom-cards.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
{{- /*
33
Creates a card for each author of a linter/formatter.
44

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

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

10-
{{- partial "author-cards" (dict "cols" $cols "content" .Inner) -}}
11+
{{- partial "custom-cards" (dict "cols" $cols "mainClass" $mainClass "content" .Inner) -}}

0 commit comments

Comments
 (0)