Skip to content

Commit

Permalink
Add grid outline option (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored Feb 27, 2024
1 parent 1d95670 commit abc3a6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions layouts/shortcodes/grid1.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

doc: Grids.

{{< grid1 columns="1 2 3 4" >}}
{{< grid1 columns="1 2 3 4" outline="" >}}

[[item]]
type = ''
Expand Down Expand Up @@ -95,7 +95,11 @@

*/}}

<div class="sd-container-fluid sd-mb-4">
{{ $outline := "" }}
{{ if isset .Params `outline` }}
{{ $outline = "sd-border-1" }}
{{ end }}
<div class="sd-container-fluid sd-mb-4 {{ $outline | safeHTMLAttr }}">
{{- with .Get "columns" -}}
{{ $columns := split . " " }}
{{ $xs := index $columns 0 }}
Expand Down

0 comments on commit abc3a6a

Please sign in to comment.