feat(shortcodes): add 'aside' shortcode for side notes (#452)

This commit is contained in:
Óscar 2024-12-24 10:50:47 +01:00 committed by GitHub
parent e1b60542df
commit 98b0c8d161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 131 additions and 3 deletions

View file

@ -0,0 +1,5 @@
{%- set text = text | default(value=body) -%}
<aside {% if position %}data-position="{{ position }}"{% endif %}>
{{ text | markdown | safe }}
</aside>