Browse Source

First commit

master
Aris 4 months ago
parent
commit
eba8ccfe54
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      columns.html

+ 21
- 0
columns.html View File

@ -0,0 +1,21 @@
{{ if .IsNamedParams -}}
<div class="container-fluid p-{{ with .Get "padding" }}{{ . }}{{ else }}0{{ end }}{{ with .Get "class" }} {{ . }}{{ end }} overflow-hidden">
<div class="row row-cols-1 row-cols-sm-{{ with .Get "cols" }}{{ . }}{{ else }}2{{ end }} {{ with .Get "gx" }}gx-{{ . }}{{ end }}">
{{- range split .Inner "<--->" -}}
<div class="col">
{{ . | markdownify }}
</div>
{{- end -}}
</div>
</div>
{{- else -}}
<div class="container-fluid p-0">
<div class="row row-cols-1 row-cols-sm-2">
{{- range split .Inner "<--->" -}}
<div class="col">
{{ . | markdownify }}
</div>
{{- end -}}
</div>
</div>
{{- end }}

Loading…
Cancel
Save