aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes/column.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-05-22 16:17:55 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-05-22 16:17:55 +0200
commitc80bd79dcd8a4bea3a15061dc6e17a46d374d485 (patch)
tree3f3f0caf226ae23115e71edf8f9949ab2ea82d58 /layouts/shortcodes/column.html
parentcf6720efadb6e3a4fc70499424ab6a754a9f22a7 (diff)
#39, Add multi-column shortcode
Diffstat (limited to 'layouts/shortcodes/column.html')
-rw-r--r--layouts/shortcodes/column.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/shortcodes/column.html b/layouts/shortcodes/column.html
new file mode 100644
index 0000000..1951150
--- /dev/null
+++ b/layouts/shortcodes/column.html
@@ -0,0 +1,10 @@
+{{ if .Inner }}
+<div class="flex">
+ <div class="flex-even">
+ {{ .Inner | markdownify }}
+ </div>
+</div>
+{{ else }}
+ </div> <!-- close current column -->
+ <div class="flex-even"> <!-- open new column -->
+{{ end }}