Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grid item #604

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions layouts/partials/_elements/item.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{{- $columns := default "" .columns -}}
{{- if eq $columns ""}}
<div class="sd-col sd-d-flex-row">
<div class="sd-col sd-d-flex-column">
{{- else if eq $columns "auto"}}
<div class="sd-col sd-d-flex-row sd-col-auto sd-col-xs-auto sd-col-sm-auto sd-col-md-auto sd-col-lg-auto">
<div class="sd-col sd-d-flex-column sd-col-auto sd-col-xs-auto sd-col-sm-auto sd-col-md-auto sd-col-lg-auto">
{{- else }}
{{- $columns := split $columns " " }}
{{- $xs := index $columns 0 }}
{{- $sm := index $columns 1 }}
{{- $md := index $columns 2 }}
{{- $lg := index $columns 3 }}
<div class="sd-col sd-d-flex-row sd-col-{{ $xs }} sd-col-xs-{{ $xs }} sd-col-sm-{{ $sm }} sd-col-md-{{ $md }} sd-col-lg-{{ $lg }}">
<div class="sd-col sd-d-flex-column sd-col-{{ $xs }} sd-col-xs-{{ $xs }} sd-col-sm-{{ $sm }} sd-col-md-{{ $md }} sd-col-lg-{{ $lg }}">
{{- end }}
<div>
{{- with (trim .body "\n") }}
Expand Down