From 67ecec8cda74f1c63adccabb1b02cce66cd875c7 Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 28 Feb 2026 21:38:53 +0800 Subject: feat: add markdown callout --- layouts/_markup/render-blockquote.html | 107 +++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 layouts/_markup/render-blockquote.html (limited to 'layouts') diff --git a/layouts/_markup/render-blockquote.html b/layouts/_markup/render-blockquote.html new file mode 100644 index 0000000..c11de7e --- /dev/null +++ b/layouts/_markup/render-blockquote.html @@ -0,0 +1,107 @@ + + + + + +{{ $emojis := dict + "caution" "🚨" + "important" "☝️" + "note" "ℹ️" + "tip" "💡" + "warning" "⚠️" + "announcement" "📣" +}} + +{{ if eq .Type "alert" }} +
+
+ {{ with .AlertTitle }} + {{.}} + {{ else }} + {{ index $emojis .AlertType }} + {{ end }} +
+
+ {{ .Text }} +
+
+{{ else }} +
+ {{ .Text }} +
+{{ end }} -- cgit v1.2.3