Skip to content

Commit

Permalink
change(shortcodes/info_notice): add summary parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Longor1996 committed Sep 26, 2024
1 parent 266e88f commit 1e4e120
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/shortcodes/info_notice.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{% set class = class | default(value='') %}
{% if float %}{% set class = class ~ "float " %}{% endif %}
{% if summary %}
<details class='notice info {{ class }}'><summary>{{ summary | markdown(inline=true) }}</summary>{{ body | markdown }}</details>
{% else %}
<div class='notice info {{ class }}'>{{ body | markdown }}</div>
{% endif %}

0 comments on commit 1e4e120

Please sign in to comment.