From f1605d38020c1c854158c563cb26eeca55cbdacc Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Sat, 21 Jul 2018 06:31:30 +1000 Subject: [PATCH] adds some handy shortcodes --- layouts/shortcodes/kbd.html | 1 + layouts/shortcodes/note.html | 4 ++++ layouts/shortcodes/warning.html | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 layouts/shortcodes/kbd.html create mode 100644 layouts/shortcodes/note.html create mode 100644 layouts/shortcodes/warning.html diff --git a/layouts/shortcodes/kbd.html b/layouts/shortcodes/kbd.html new file mode 100644 index 0000000..c3c3739 --- /dev/null +++ b/layouts/shortcodes/kbd.html @@ -0,0 +1 @@ +{{- .Get 0 -}} diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html new file mode 100644 index 0000000..a214873 --- /dev/null +++ b/layouts/shortcodes/note.html @@ -0,0 +1,4 @@ +
+ {{ .Get 0 | default "Note" }}
+ {{- .Inner -}} +
\ No newline at end of file diff --git a/layouts/shortcodes/warning.html b/layouts/shortcodes/warning.html new file mode 100644 index 0000000..a2042cf --- /dev/null +++ b/layouts/shortcodes/warning.html @@ -0,0 +1,3 @@ +
+ {{- .Inner -}} +
\ No newline at end of file