summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/columns.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/columns.html')
-rw-r--r--layouts/shortcodes/columns.html28
1 files changed, 22 insertions, 6 deletions
diff --git a/layouts/shortcodes/columns.html b/layouts/shortcodes/columns.html
index 536e87e..97e2eaa 100644
--- a/layouts/shortcodes/columns.html
+++ b/layouts/shortcodes/columns.html
@@ -1,7 +1,23 @@
-<div class="md-columns">
-{{ range split .Inner "<--->" }}
-{{ printf "<div class=\"markdown-inner\">" | htmlUnescape | safeHTML }}
-{{ . | safeHTML }}
-{{ printf "</div>" | htmlUnescape | safeHTML }}
-{{ end }}
+<style>
+ .columns {
+ display: flex;
+ justify-content: space-between;
+ margin: 20px 0;
+ }
+ .column {
+ flex: 1;
+ padding: 10px;
+ box-sizing: border-box;
+ margin: 0 10px; /* Adjust spacing between columns */
+ }
+ @media (max-width: 768px) {
+ .columns {
+ flex-direction: column;
+ }
+ }
+</style>
+
+<div class="columns">
+ {{ .Inner | safeHTML }}
</div>
+