aboutsummaryrefslogtreecommitdiff
path: root/themes/docsy/layouts/shortcodes/blocks/section.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/docsy/layouts/shortcodes/blocks/section.html')
-rw-r--r--themes/docsy/layouts/shortcodes/blocks/section.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/docsy/layouts/shortcodes/blocks/section.html b/themes/docsy/layouts/shortcodes/blocks/section.html
new file mode 100644
index 0000000..d5897f6
--- /dev/null
+++ b/themes/docsy/layouts/shortcodes/blocks/section.html
@@ -0,0 +1,12 @@
+{{ $_hugo_config := `{ "version": 1 }` }}
+{{ $col_id := .Get "color" | default .Ordinal }}
+{{ $height := .Get "height" | default "auto" }}
+{{ $type := .Get "type" | default "" }}
+<a id="td-block-{{ .Ordinal }}" class="td-offset-anchor"></a>
+<section class="row td-box td-box--{{ $col_id }} td-box--gradient td-box--height-{{ $height }}">
+ <div class="col">
+ <div class="row {{ $type }}">
+ {{ .Inner | markdownify}}
+ </div>
+ </div>
+</section>