mirror of
https://github.com/imfing/hextra.git
synced 2025-05-13 19:36:25 -04:00

* feat: configurable cols for feature-grid shortcode * chore: update css files * chore: add hextra prefix to cards css var * chore: rebuild css
13 lines
356 B
HTML
13 lines
356 B
HTML
{{- $cols := .Get "cols" | default 3 -}}
|
|
{{- $style := .Get "style" | default "" -}}
|
|
|
|
{{- $css := printf "--hextra-feature-grid-cols: %v; %s" $cols $style -}}
|
|
|
|
|
|
<div
|
|
class="hextra-feature-grid hx-grid sm:max-lg:hx-grid-cols-2 max-sm:hx-grid-cols-1 hx-gap-4 hx-w-full not-prose"
|
|
{{ with $css }}style="{{ . | safeCSS }}"{{ end }}
|
|
>
|
|
{{ .Inner }}
|
|
</div>
|