Skip to content

Commit 9681433

Browse files
component: adjust grid resizing
Signed-off-by: Craig Osterhout <[email protected]>
1 parent 74e6153 commit 9681433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/grid.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ $cols := .Get "cols" | default 3 }}
22
<div
3-
class="not-prose md:grid-cols-{{ math.Max 2 (sub $cols 1) }} lg:grid-cols-{{ $cols }} grid grid-cols-1 gap-4 mb-6"
3+
class="not-prose md:grid-cols-{{ math.Max 2 (sub $cols 1) }} xl:grid-cols-{{ $cols }} grid grid-cols-1 gap-4 mb-6"
44
>
55
{{ $items := index .Page.Params (.Get "items" | default "grid") }}
66
{{ range $items }}

0 commit comments

Comments
 (0)