{% macro publisting(pub_article) %}

{{pub_article.title}}

{{authorlist(pub_article)}}

{% endmacro %} {% macro pubtable(pub_articles) %} {% for article in pub_articles %} {{ publisting(article) }} {% endfor %}
{% endmacro %} {% macro authorlist(pub) %} {% if pub.pubauthor %} {{pub.pubauthor}} {% elif pub.pubauthors %} {% for author in pub.pubauthors %} {{author}} {% if pub.pubauthorsorcid %} {% if (pub.pubauthorsorcid[loop.index0])|length > 8 %} ORCID logo {% endif %} {% endif %} {% if not loop.last %} , {% endif %} {% endfor %} {% else %} {% endif %} {% endmacro %}