Display content un columns with Bootstrap CSS framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

21 lines
637 B

{{ 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 }}