{% assign authors = matter.author | append: ',' | append: matter.contrib | replace: " ","" | split: ',' %} {% if authors %} {% for author in authors %} {% avatar user=author size=30 %} {% endfor %} {% endif %}