summaryrefslogtreecommitdiffstats
path: root/site/layouts/shortcodes/callout.html
blob: 86683ecf4c8c711c8d5c61389ae18d19f6706124 (plain)
1
2
3
4
5
6
7
8
9
{{- /*
  Usage: `callout "type"`, where `type` is one of info (default), danger, or warning
*/ -}}

{{- $css_class := .Get 0 | default "info" -}}

<div class="bd-callout bd-callout-{{ $css_class }}">
{{ .Inner | markdownify }}
</div>