File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 9
9
10
10
### Thanks to developers and authors of used linters
11
11
12
- {{< author-cards cols=7 >}}
12
+ {{< custom-cards mainClass=" author-cards" cols=7 >}}
13
13
{{< authors >}}
14
- {{< /author -cards >}}
14
+ {{< /custom -cards >}}
15
15
16
16
### Thanks to all contributors
17
17
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 2
2
{{- /*
3
3
Creates a card for each author of a linter/formatter.
4
4
5
- @example {{< author -cards cols =7 > }}{{< authors > }}{{< /author -cards > }}
5
+ @example {{< custom -cards cols =7 > }}{{< authors > }}{{< /custom -cards > }}
6
6
*/ -}}
7
7
8
8
{{- $cols := .Get "cols" | default 3 -}}
9
+ {{- $mainClass := .Get "mainClass" | default "hextra-cards" -}}
9
10
10
- {{- partial "author -cards" (dict "cols" $cols "content" .Inner) -}}
11
+ {{- partial "custom -cards" (dict "cols" $cols "mainClass" $mainClass "content" .Inner) -}}
You can’t perform that action at this time.
0 commit comments