mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-24 06:03:10 +02:00
callout.html: drop whitespace and better usage comment.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
{% comment %} allowed: info danger warning {% endcomment %}
|
{%- comment -%}
|
||||||
{% assign css_class = include.type | default: "info" %}
|
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 }}">
|
<div class="bd-callout bd-callout-{{ css_class }}">
|
||||||
{{ include.content | markdownify }}
|
{{- include.content | markdownify -}}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user