forked from deepStateMirrors/tabi
✨ feat(admonitions): allow swapping admonition icons (#340)
This commit is contained in:
parent
c9c8ed84a0
commit
d689c15145
5 changed files with 55 additions and 40 deletions
|
@ -1,8 +1,9 @@
|
|||
{%- set type = type | default(value="info") -%}
|
||||
{%- set title = title | default(value=type | upper) -%}
|
||||
{%- set icon = icon | default(value=type) -%}
|
||||
|
||||
<div class="admonition {{ type }}">
|
||||
<div class="admonition-icon"></div>
|
||||
<div class="admonition-icon admonition-icon-{{ icon }}"></div>
|
||||
<div class="admonition-content">
|
||||
<strong class="admonition-title">{{ title | safe }}</strong>
|
||||
{{ text | markdown | safe }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue