hugo-theme-hilfe/layouts/shortcodes/columns.html

15 lines
436 B
HTML
Raw Normal View History

2022-07-11 20:46:01 +02:00
{{- $size := default "regular" (.Get "size" | lower) }}
{{- if not (in (slice "regular" "large" "small") $size) }}
{{- $size = "regular" }}
{{- end }}
<div class="gdoc-columns gdoc-columns--{{ $size }} flex flex-gap flex-mobile-column">
{{- range split .Inner "<--->" }}
2023-04-25 20:47:03 +02:00
<div class="gdoc-columns__content gdoc-markdown--nested flex-even position-relative">
{{ . | $.Page.RenderString -}}
</div>
{{- end }}
2020-01-12 15:33:02 +01:00
</div>