mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 17:56:36 -04:00
12 lines
253 B
HTML
12 lines
253 B
HTML
{{- /*
|
|
A shortcode for creating cards.
|
|
|
|
@param {string} cols The number of columns.
|
|
|
|
@example {{< cards cols="3" >}}{{< /cards >}}
|
|
*/ -}}
|
|
|
|
{{- $cols := .Get "cols" | default 3 -}}
|
|
|
|
{{- partial "shortcodes/cards" (dict "cols" $cols "content" .Inner) -}}
|