{% if article.author and article.author.badge %}
<div class="m-block m-success{% if article.author.image %} m-badge{% endif %}">
  {% if article.author.image %}
  <img src="{{ article.author.image|expand_link(article)|e }}" alt="{{ article.author|e }}" />
  {% endif %}
  <h3>About the author</h3>
  {{ article.author.badge|expand_links(article)|rtrim|indent(2) }}
</div>
{% endif %}
{% if article.category.badge %}
<div class="m-block m-warning{% if article.category.image %} m-badge{% endif %}">
  {% if article.category.image %}
  <img src="{{ article.category.image|expand_link(article)|e }}" alt="{{ article.category|e }}" />
  {% endif %}
  <h3>{% if article.category.badge_title %}{{ article.category.badge_title }}{% else %}{{ article.category|e }}{% endif %}</h3>
  {{ article.category.badge|expand_links(article)|rtrim|indent(2) }}
</div>
{% endif %}
