feat: configurable cols for feature-grid shortcode (#342)

* feat: configurable cols for feature-grid shortcode

* chore: update css files

* chore: add hextra prefix to cards css var

* chore: rebuild css
This commit is contained in:
Xin
2024-03-31 23:06:26 +02:00
committed by GitHub
parent 24fb13b221
commit 5080877576
7 changed files with 37 additions and 23 deletions

View File

@ -1,5 +1,5 @@
{{ $rows := .Get "rows" | default "3" }}
{{- $cols := .Get "cols" | default 3 -}}
<div class="hextra-cards hx-mt-4 hx-gap-4 hx-grid not-prose" style="--rows: {{ $rows }};">
<div class="hextra-cards hx-mt-4 hx-gap-4 hx-grid not-prose" style="--hextra-cards-grid-cols: {{ $cols }};">
{{- .Inner -}}
</div>