From 5e4d759614c4b50b004f887c92df2e4d6aead34e Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 24 May 2026 23:01:12 +0200 Subject: Sidenote / alert --- layouts/shortcodes/alert.html | 71 ++++++++----------------------------------- 1 file changed, 12 insertions(+), 59 deletions(-) (limited to 'layouts/shortcodes/alert.html') diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html index b980b41..bb07868 100644 --- a/layouts/shortcodes/alert.html +++ b/layouts/shortcodes/alert.html @@ -2,72 +2,25 @@ {{ $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}} -

+ {{ if $title }}{{ $title }}{{ end }} +

+
{{.Inner | markdownify}}
-- cgit v1.3