forked from deepStateMirrors/tabi
✨ feat(shortcodes): add admonition shortcode (#285)
This commit is contained in:
parent
edef96567c
commit
d0162291d9
6 changed files with 297 additions and 3 deletions
10
templates/shortcodes/admonition.html
Normal file
10
templates/shortcodes/admonition.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{%- set type = type | default(value="info") -%}
|
||||
{%- set title = title | default(value=type | upper) -%}
|
||||
|
||||
<div class="admonition {{ type }}">
|
||||
<div class="admonition-icon"></div>
|
||||
<div class="admonition-content">
|
||||
<strong class="admonition-title">{{ title | safe }}</strong>
|
||||
{{ text | markdown | safe }}
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue