feat: make cards as partial (#474)

This commit is contained in:
Xin
2024-10-14 23:03:22 +01:00
committed by GitHub
parent a97a1791cc
commit 2565f372d1
2 changed files with 7 additions and 3 deletions

View File

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