feat(shortcodes): support body admonitions

This commit is contained in:
welpo 2024-11-07 14:31:29 +01:00
parent e2c5c6e9b7
commit fd62e89c10
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
4 changed files with 55 additions and 6 deletions

View file

@ -1,6 +1,7 @@
{%- 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>