summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/center-image.html10
-rw-r--r--layouts/shortcodes/center.html3
2 files changed, 13 insertions, 0 deletions
diff --git a/layouts/shortcodes/center-image.html b/layouts/shortcodes/center-image.html
new file mode 100644
index 0000000..e60217b
--- /dev/null
+++ b/layouts/shortcodes/center-image.html
@@ -0,0 +1,10 @@
+{{ $src := .Get "src" }}
+{{ $alt := .Get "alt" }}
+
+<div class="columns is-centered">
+ <img
+ src="{{ $src }}"
+ alt="{{ $alt }}"
+ decoding="async"
+ />
+</div> \ No newline at end of file
diff --git a/layouts/shortcodes/center.html b/layouts/shortcodes/center.html
new file mode 100644
index 0000000..93a13f1
--- /dev/null
+++ b/layouts/shortcodes/center.html
@@ -0,0 +1,3 @@
+<div class="columns is-centered">
+ {{.Inner}}
+</div> \ No newline at end of file