aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2018-03-12 21:20:14 +0200
committerXhmikosR <[email protected]>2018-03-12 21:50:21 +0200
commit836de9ccfa201eefb02c97c61a2f3a50e2f2f219 (patch)
tree245217c5ffb66cb22a24175ccfea56997ef015b1 /_includes
parentb5e6eb22a6da98c489c00e6266daa4599e3ce097 (diff)
downloadbootstrap-836de9ccfa201eefb02c97c61a2f3a50e2f2f219.tar.xz
bootstrap-836de9ccfa201eefb02c97c61a2f3a50e2f2f219.zip
callout.html: drop whitespace and better usage comment.
Diffstat (limited to '_includes')
-rw-r--r--_includes/callout.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/_includes/callout.html b/_includes/callout.html
index 8ee72de99..ff9450dc4 100644
--- a/_includes/callout.html
+++ b/_includes/callout.html
@@ -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>