From 3a6a6179a1c1efe326f4957626bfbb0e38ff0c14 Mon Sep 17 00:00:00 2001 From: nakednous Date: Thu, 26 Sep 2024 10:10:49 -0500 Subject: [PATCH] callout bridge shortcode fine tuned --- layouts/shortcodes/callout.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/callout.html b/layouts/shortcodes/callout.html index 7c4ce0f..c65e721 100644 --- a/layouts/shortcodes/callout.html +++ b/layouts/shortcodes/callout.html @@ -1,11 +1,9 @@ {{ $type := .Get "type" | default "info" }} -{{ $isHugoBook := eq .Site.Params.theme "book" }} - -{{ if and $isHugoBook (eq $type "error") }} +{{ if eq $type "error" }} {{ $type = "danger" }} {{ end }}
{{ .Inner | .Page.RenderString }} -
+ \ No newline at end of file