diff options
author | Paul <paul@brainspark.nl> | 2020-03-07 01:02:02 +0300 |
---|---|---|
committer | Paul <paul@brainspark.nl> | 2020-03-07 01:02:02 +0300 |
commit | e8f7210bed4ac2d4ef6ce50c3d883d6a50e5d809 (patch) | |
tree | 04997b13f64b48a145f1f81c084b90bb776de43b | |
parent | aeacf9683295a025950389a674cde14f6a411d3b (diff) |
Add structure/row shortcode
-rw-r--r-- | layouts/shortcodes/structure/row.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/shortcodes/structure/row.html b/layouts/shortcodes/structure/row.html new file mode 100644 index 0000000..08c04de --- /dev/null +++ b/layouts/shortcodes/structure/row.html @@ -0,0 +1,8 @@ +{{- $col_definition := .Get "width" | default "col" -}} +{{- $justify_definition := .Get "justify" | default "justify-content-center" -}} +{{- $align_definition := .Get "align" | default "" -}} +<div class="row {{ $justify_definition }}"> + <div class="{{ $col_definition }} {{ $align_definition }}"> +{{ .Inner }} + </div> +</div> |