]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
callout.html: drop whitespace and better usage comment.
authorXhmikosR <xhmikosr@gmail.com>
Mon, 12 Mar 2018 19:20:14 +0000 (21:20 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 12 Mar 2018 19:50:21 +0000 (21:50 +0200)
_includes/callout.html

index 8ee72de99841bfa9ab73fdaafda03298f14b209e..ff9450dc44f8df3a152b1a2df5f3519bffcfff78 100644 (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>