We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b28b557 commit 3d577e8Copy full SHA for 3d577e8
1 file changed
layouts/partials/_elements/grid.html
@@ -19,7 +19,9 @@
19
{{- $gSm := $gXs -}}
20
{{- $gMd := $gXs -}}
21
{{- $gLg := $gXs -}}
22
- {{- if gt (len $gutterParts) 1 -}}
+ {{- if and (gt (len $gutterParts) 1) (ne (len $gutterParts) 4) -}}
23
+ {{- errorf "grid gutter must be either 1 or 4 values (but got %d): %q" (len $gutterParts) $gutter -}}
24
+ {{- else if eq (len $gutterParts) 4 -}}
25
{{- $gSm = index $gutterParts 1 -}}
26
{{- $gMd = index $gutterParts 2 -}}
27
{{- $gLg = index $gutterParts 3 -}}
0 commit comments