columns.html 418 B

123456789101112131415
  1. {{- $size := default "regular" (.Get "size" | lower) }}
  2. {{- if not (in (slice "regular" "large" "small") $size) }}
  3. {{- $size = "regular" }}
  4. {{- end }}
  5. <div class="gdoc-columns gdoc-columns--{{ $size }} flex flex-gap flex-mobile-column">
  6. {{- range split .Inner "<--->" }}
  7. <div class="gdoc-columns__content gdoc-markdown--nested flex-even">
  8. {{ . | $.Page.RenderString -}}
  9. </div>
  10. {{- end }}
  11. </div>