Skip to content

Commit

Permalink
callout bridge shortcode fine tuned
Browse files Browse the repository at this point in the history
  • Loading branch information
nakednous committed Sep 26, 2024
1 parent 29371af commit 3a6a617
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions layouts/shortcodes/callout.html
Original file line number Diff line number Diff line change
@@ -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 }}

<blockquote class="book-hint {{ $type }}">
{{ .Inner | .Page.RenderString }}
</blockquote>
</blockquote>

0 comments on commit 3a6a617

Please sign in to comment.