Commit f556fbe6 authored by CSA's avatar CSA
Browse files

New pillar widget for multi-column layout

parent a7583d45
{{ $pillar := $.Scratch.Get "pillar" }}
{{ $columns := len $pillar.items }}
<div class="pure-g pillar-widget">
{{ range $i := $pillar.items }}
<!-- Maximum 3 columns on medium screens -->
<div class="pure-u-1 pure-u-md-1-{{ cond (gt $columns 3) 3 $columns }} pure-u-lg-1-{{ $columns }}{{ if $pillar.childClass }} {{ $pillar.childClass }}{{ end }}">
{{ if eq $i.type "menu" }}
{{ $.Scratch.Set "menu" (dict "name" $i.name "template" "v" "class" "") }}
{{ partial "menu.html" $ }}
{{ end }}
</div>
{{ end }}
</div>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment