Skip to content

Commit abc3a6a

Browse files
Add grid outline option (#513)
1 parent 1d95670 commit abc3a6a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

layouts/shortcodes/grid1.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
doc: Grids.
44

5-
{{< grid1 columns="1 2 3 4" >}}
5+
{{< grid1 columns="1 2 3 4" outline="" >}}
66

77
[[item]]
88
type = ''
@@ -95,7 +95,11 @@
9595

9696
*/}}
9797

98-
<div class="sd-container-fluid sd-mb-4">
98+
{{ $outline := "" }}
99+
{{ if isset .Params `outline` }}
100+
{{ $outline = "sd-border-1" }}
101+
{{ end }}
102+
<div class="sd-container-fluid sd-mb-4 {{ $outline | safeHTMLAttr }}">
99103
{{- with .Get "columns" -}}
100104
{{ $columns := split . " " }}
101105
{{ $xs := index $columns 0 }}

0 commit comments

Comments
 (0)