feat(admonitions): allow swapping admonition icons (#340)

This commit is contained in:
Óscar
2024-06-27 21:08:05 +02:00
committed by GitHub
parent c9c8ed84a0
commit d689c15145
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 }}