Add a content-grid shortcode that creates a grid of n columns inside a <div>
This commit is contained in:
parent
7872296ee3
commit
4a5dc3a318
4 changed files with 23 additions and 0 deletions
4
layouts/shortcodes/content-grid.html
Normal file
4
layouts/shortcodes/content-grid.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{- $columns := .Get "columns" -}}
|
||||
<div class="content-grid" style="--columns: {{ $columns }};">
|
||||
{{ .Inner }}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue