Skip to content

Commit

Permalink
callout.html: drop whitespace and better usage comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 12, 2018
1 parent b5e6eb2 commit 836de9c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions _includes/callout.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 836de9c

Please sign in to comment.