From ca9c1d6d286c0cfe19f795a6579a2e43d5573ba1 Mon Sep 17 00:00:00 2001 From: noxil Date: Sat, 7 Sep 2024 12:02:55 +0200 Subject: [PATCH] feat(shortcodes): add shortcodes for info boxes and icons --- layouts/shortcodes/box.html | 3 +++ layouts/shortcodes/icon.html | 1 + 2 files changed, 4 insertions(+) create mode 100644 layouts/shortcodes/box.html create mode 100644 layouts/shortcodes/icon.html diff --git a/layouts/shortcodes/box.html b/layouts/shortcodes/box.html new file mode 100644 index 0000000..41fef27 --- /dev/null +++ b/layouts/shortcodes/box.html @@ -0,0 +1,3 @@ +
+ {{ .Inner | markdownify }} +
\ No newline at end of file diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html new file mode 100644 index 0000000..4e40d1e --- /dev/null +++ b/layouts/shortcodes/icon.html @@ -0,0 +1 @@ +{{ .Get "icon" }} \ No newline at end of file