summaryrefslogtreecommitdiffhomepage
path: root/layouts/shortcodes/blocks
diff options
context:
space:
mode:
authorIan Lewis <ianmlewis@gmail.com>2019-03-29 22:40:11 -0400
committerIan Lewis <ianmlewis@gmail.com>2019-03-29 22:40:11 -0400
commit22f1890a9beab11d8cfdceba3a4d66f8bbbb468c (patch)
tree110ec3a84a72560244ee4476852295b86a737eb0 /layouts/shortcodes/blocks
Initial commit
Diffstat (limited to 'layouts/shortcodes/blocks')
-rw-r--r--layouts/shortcodes/blocks/lead.html11
-rw-r--r--layouts/shortcodes/blocks/section.html12
2 files changed, 23 insertions, 0 deletions
diff --git a/layouts/shortcodes/blocks/lead.html b/layouts/shortcodes/blocks/lead.html
new file mode 100644
index 000000000..7825eac70
--- /dev/null
+++ b/layouts/shortcodes/blocks/lead.html
@@ -0,0 +1,11 @@
+{{ $col_id := .Get "color" | default .Ordinal }}
+{{ $height := .Get "height" | default "auto" }}
+{{/* Height can be one of: auto, min, med, max, full. */}}
+<a id="td-block-{{ .Ordinal }}" class="td-offset-anchor"></a>
+<section class="row td-box td-box--{{ $col_id }} position-relative td-box--gradient td-box--height-{{ $height }}">
+ <div class="container td-arrow-down">
+ <span class="h4 mb-0">
+ {{ .Inner }}
+ </span>
+ </div>
+</section>
diff --git a/layouts/shortcodes/blocks/section.html b/layouts/shortcodes/blocks/section.html
new file mode 100644
index 000000000..de7e6c8f1
--- /dev/null
+++ b/layouts/shortcodes/blocks/section.html
@@ -0,0 +1,12 @@
+{{ $col_id := .Get "color" | default .Ordinal }}
+{{ $height := .Get "height" | default "auto" }}
+<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="container">
+ <div class="row">
+ {{ .Inner }}
+ </div>
+ </div>
+ </div>
+</section>