{% assign type = include.type | default: 'default' %} {% assign type_class = 'alert-' | append: type %} {% assign icon = include.icon | strip %} {% assign header = include.header | markdownify | remove: '

' | remove: '

' | strip %} {% assign body = include.body | markdownify | remove: '

' | remove: '

' | strip %}
{% if header != blank and header != empty and header != nil %}
{% if icon != blank and icon != empty and icon != nil %} {{ icon }} {% endif %} {% if header != blank and header != empty and header != nil %}

{{ header }}

{% endif %}
{% else %} {% if icon != blank and icon != empty and icon != nil %} {{ icon }} {% endif %} {% endif %} {% if body != blank and body != empty and body != nil %} {% if header != blank and header != empty and header != nil %}

{{ body }}

{% else %}

{{ body }}

{% endif %} {% endif %}