From 4c41e477e13d37e187c8de4225c7e8056bd9ed28 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 29 Sep 2025 19:17:13 +0200 Subject: Internalise theme --- layouts/shortcodes/alert.html | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 layouts/shortcodes/alert.html (limited to 'layouts/shortcodes/alert.html') diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html new file mode 100644 index 0000000..3a55964 --- /dev/null +++ b/layouts/shortcodes/alert.html @@ -0,0 +1,73 @@ +{{ $severity := .Get 0 }} +{{ $title := .Get 1 }} + +
+ {{ if $title }} +

{{ $title }}

+ {{ end }} +

+ {{ if eq $severity "info" }} + + + + {{ else if eq $severity "warning" }} + + + + {{ else if eq $severity "error" }} + + + + {{ else if eq $severity "success" }} + + + + + {{ end }} + {{.Inner}} +

+
-- cgit v1.3