{% macro article_author(article) %} {% set tag = namespace({'open' : true, 'close': false}) %} {% for author in article.authors %} {% if author|string in AUTHORS %} {% if tag.open %}
{% set tag.open = false %} {% set tag.close = true %} {% endif %} {% set auth = AUTHORS.get(author|string) %}
{% if AUTHORS.get(author|string).avatar %} {{ author }} Avatar {% endif %} {{ author }} {{ auth.blurb }}
{% endif %} {% endfor %} {% if tag.close %} {% endif %} {% endmacro %}