We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5e6eb2 commit 836de9cCopy full SHA for 836de9c
_includes/callout.html
@@ -1,5 +1,9 @@
1
-{% comment %} allowed: info danger warning {% endcomment %}
2
-{% assign css_class = include.type | default: "info" %}
+{%- comment -%}
+Usage: {% include callout.html content=callout type="type" %},
3
+where content is a capture with the content
4
+and type is one of: info (default), danger, warning
5
+{%- endcomment -%}
6
+{%- assign css_class = include.type | default: "info" -%}
7
<div class="bd-callout bd-callout-{{ css_class }}">
- {{ include.content | markdownify }}
8
+ {{- include.content | markdownify -}}
9
</div>
0 commit comments