feat(shortcodes): add admonition shortcode (#285)

This commit is contained in:
welpo 2024-03-21 01:21:11 +01:00
parent edef96567c
commit d0162291d9
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
6 changed files with 297 additions and 3 deletions

View 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>