0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

callout.html: drop whitespace and better usage comment.

This commit is contained in:
XhmikosR 2018-03-12 21:20:14 +02:00
parent b5e6eb22a6
commit 836de9ccfa

View File

@ -1,5 +1,9 @@
{% comment %} allowed: info danger warning {% endcomment %}
{% assign css_class = include.type | default: "info" %}
{%- comment -%}
Usage: {% include callout.html content=callout type="type" %},
where content is a capture with the content
and type is one of: info (default), danger, warning
{%- endcomment -%}
{%- assign css_class = include.type | default: "info" -%}
<div class="bd-callout bd-callout-{{ css_class }}">
{{ include.content | markdownify }}
{{- include.content | markdownify -}}
</div>