mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-22 17:58:34 +08:00
10 lines
351 B
HTML
10 lines
351 B
HTML
|
|
{%- comment -%}
|
||
|
|
Usage: include callout.html content=callout type="type",
|
||
|
|
where content is a capture with the content
|
||
|
|
and type is one of: info (default), danger, warning
|
||
|
|
{%- endcomment -%}
|
||
|
|
{%- assign css_class = include.type | default: "info" -%}
|
||
|
|
<div class="bd-callout bd-callout-{{ css_class }}">
|
||
|
|
{{- include.content | markdownify -}}
|
||
|
|
</div>
|