feat(admonitions): allow swapping admonition icons

This commit is contained in:
welpo 2024-06-27 21:05:53 +02:00
parent c9c8ed84a0
commit 53d520daa7
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
5 changed files with 55 additions and 40 deletions

View file

@ -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 }}