hugo-geekblog/layouts/shortcodes/columns.html

15 lines
421 B
HTML
Raw Normal View History

2022-07-11 13:09:48 +00:00
{{- $size := default "regular" (.Get "size" | lower) }}
{{- if not (in (slice "regular" "large" "small") $size) }}
{{- $size = "regular" }}
{{- end }}
<div class="gblog-columns gblog-columns--{{ $size }} flex flex-gap flex-mobile-column">
{{- range split .Inner "<--->" }}
<div class="gblog-columns__content gblog-markdown--nested flex-even">
{{ . | $.Page.RenderString }}
</div>
{{- end }}
2020-07-06 18:55:32 +00:00
</div>