Welcome to mirror list, hosted at ThFree Co, Russian Federation.

block-media-column.html « shortcodes « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9226227a1f2551bde41ed92e073ae68f8a0359cf (plain)
1
2
3
4
5
6
7
8
9
{{- $cols := split .Inner "<!--split-->" -}}
{{- $col := len $cols -}}
<div class="block-media block-media_column" style="width: 100%">
    {{- range $cols -}}
    <div class="content-column" style="{{if eq $col 3}} width:33%; {{else}} width: 50%;{{end}} display: inline-block">
        {{- . | $.Page.RenderString -}}
    </div>
    {{- end -}}
</div>