forked from deepStateMirrors/tabi
✨ feat(shortcodes): support body admonitions (#423)
This commit is contained in:
parent
e2c5c6e9b7
commit
e8381d05cc
4 changed files with 55 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
{%- set type = type | default(value="info") -%}
|
||||
{%- set title = title | default(value=type | upper) -%}
|
||||
{%- set icon = icon | default(value=type) -%}
|
||||
{%- set text = text | default(value=body) -%}
|
||||
|
||||
<div class="admonition {{ type }}">
|
||||
<div class="admonition-icon admonition-icon-{{ icon }}"></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue