summaryrefslogtreecommitdiff
path: root/layouts/_shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_shortcodes')
-rw-r--r--layouts/_shortcodes/color.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_shortcodes/color.html b/layouts/_shortcodes/color.html
new file mode 100644
index 0000000..beaac9a
--- /dev/null
+++ b/layouts/_shortcodes/color.html
@@ -0,0 +1,3 @@
+{{- $color := .Get 0 -}}
+<span class="inline-block border-box size-[1em] rd-sm shadow-inner align-middle"
+ style="background-color:{{ $color }};"></span>