Homepage/layouts/shortcodes/page_col.html

9 lines
278 B
HTML

{{- $content := .Inner }}
{{- if not $content }}
{{- errorf "missing content for column: %s" .Position }}
{{- end }}
{{- $centered := cond (default true (.Get "centered")) " centered" "" }}
<div class="pure-u-1-1 pure-u-md-1-2{{ $centered }}">
{{ markdownify $content }}
</div>