Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pjbakker/flexible-seo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul <paul@brainspark.nl>2020-03-07 01:02:02 +0300
committerPaul <paul@brainspark.nl>2020-03-07 01:02:02 +0300
commite8f7210bed4ac2d4ef6ce50c3d883d6a50e5d809 (patch)
tree04997b13f64b48a145f1f81c084b90bb776de43b
parentaeacf9683295a025950389a674cde14f6a411d3b (diff)
Add structure/row shortcode
-rw-r--r--layouts/shortcodes/structure/row.html8
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>