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

This commit is contained in:
welpo 2024-12-24 01:48:12 +01:00
parent e1b60542df
commit 7a8f99d8e2
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
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>