From 6710d8ca0faacc216f6b0ded11d8ddbdfea4cbd8 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Tue, 23 Sep 2025 10:54:18 +0800 Subject: feat: add alert blockquote support The syntax below is now supported: > [!alertType] > content This was meant to replace {{< callout >}} shortcode Former-commit-id: 4ff967a9f1a2f26bbf13a9d4c2dd1a9a252582fd --- layouts/_markup/render-blockquote.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 layouts/_markup/render-blockquote.html (limited to 'layouts/_markup/render-blockquote.html') diff --git a/layouts/_markup/render-blockquote.html b/layouts/_markup/render-blockquote.html new file mode 100644 index 00000000..6295663e --- /dev/null +++ b/layouts/_markup/render-blockquote.html @@ -0,0 +1,28 @@ +{{ $emojis := dict + "caution" "🚨" + "important" "â˜ī¸" + "note" "â„šī¸" + "tip" "💡" + "warning" "âš ī¸" +}} + +{{ if eq .Type "alert" }} +
+
+ {{ index $emojis .AlertType }} +
+
+ {{ with .AlertTitle }} +

{{ . }}

+ {{ end }} + {{ .Text }} +
+
+{{ else }} +
+ {{ .Text }} +
+{{ end }} -- cgit v1.2.3