Init
This commit is contained in:
11
themes/hextra/layouts/_shortcodes/cards.html
Normal file
11
themes/hextra/layouts/_shortcodes/cards.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- /*
|
||||
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) -}}
|
||||
Reference in New Issue
Block a user