Skip to content

Commit 836de9c

Browse files
committed
callout.html: drop whitespace and better usage comment.
1 parent b5e6eb2 commit 836de9c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

_includes/callout.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
{% comment %} allowed: info danger warning {% endcomment %}
2-
{% assign css_class = include.type | default: "info" %}
1+
{%- comment -%}
2+
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" -%}
37
<div class="bd-callout bd-callout-{{ css_class }}">
4-
{{ include.content | markdownify }}
8+
{{- include.content | markdownify -}}
59
</div>

0 commit comments

Comments
 (0)