{% for message in messages %}
  <article class="message is-{% if message.level_tag == 'error' %}danger{% else %}{{ message.level_tag }}{% endif %}">
    <div class="message-body">
      {{ message|linebreaksbr }}
    </div>
  </article>
{% endfor %}