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 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
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 22{{- /*
33Creates 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) -}}
You can’t perform that action at this time.
0 commit comments