From 6fd516b2a6d818c8a21f9b34a158808156aa0fef Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Sun, 24 Aug 2025 11:13:40 -0700 Subject: [PATCH] Add common alert short-codes. --- layouts/_shortcodes/bring-it-home.html | 17 +++++++++++++++++ layouts/_shortcodes/definition.html | 17 +++++++++++++++++ layouts/_shortcodes/go-deeper.html | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 layouts/_shortcodes/bring-it-home.html create mode 100644 layouts/_shortcodes/definition.html create mode 100644 layouts/_shortcodes/go-deeper.html diff --git a/layouts/_shortcodes/bring-it-home.html b/layouts/_shortcodes/bring-it-home.html new file mode 100644 index 0000000..823ef30 --- /dev/null +++ b/layouts/_shortcodes/bring-it-home.html @@ -0,0 +1,17 @@ +{{ $.Scratch.Set "icon" (default "sun" (.Get 0) ) }} + +
+ + {{ partial "icon.html" ($.Scratch.Get "icon") }} + + + + {{- .Inner | markdownify -}} + +
diff --git a/layouts/_shortcodes/definition.html b/layouts/_shortcodes/definition.html new file mode 100644 index 0000000..325722b --- /dev/null +++ b/layouts/_shortcodes/definition.html @@ -0,0 +1,17 @@ +{{ $.Scratch.Set "icon" (default "circle-info" (.Get 0) ) }} + +
+ + {{ partial "icon.html" ($.Scratch.Get "icon") }} + + + + {{- .Inner | markdownify -}} + +
diff --git a/layouts/_shortcodes/go-deeper.html b/layouts/_shortcodes/go-deeper.html new file mode 100644 index 0000000..d1bb58b --- /dev/null +++ b/layouts/_shortcodes/go-deeper.html @@ -0,0 +1,17 @@ +{{ $.Scratch.Set "icon" (default "graduation-cap" (.Get 0) ) }} + +
+ + {{ partial "icon.html" ($.Scratch.Get "icon") }} + + + + {{- .Inner | markdownify -}} + +