website/themes/hugoplate/layouts/shortcodes/mdcolumns.html

13 lines
No EOL
504 B
HTML

<!-- Columns Container Start -->
<div class='md:flex {{ with .Get "class" }} {{ . }} {{ else }} mt-6 {{ end }}'>
<!-- Split content into columns based on a unique delimiter, e.g., "..column.." -->
{{ range split (trim .Inner " \n") "..column.." }}
{{ if ne . "" }} <!-- Check if the column content is not empty -->
<div class="markdown-inner items-center flex-1 px-4">
<!-- Convert Markdown column content to HTML -->
{{ . | markdownify }}
</div>
{{ end }}
{{ end }}
</div>
<!-- Columns Container End -->