Add files to repos
This commit is contained in:
12
themes/tabi/templates/shortcodes/admonition.html
Normal file
12
themes/tabi/templates/shortcodes/admonition.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{%- 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>
|
||||
<div class="admonition-content">
|
||||
<strong class="admonition-title">{{ title | safe }}</strong>
|
||||
{{ text | markdown | safe }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user