{% if name in site.authors %}
{% set author = site.authors[name] %}
<img src="{{url_for(path=author.avatar)}}" alt="{{ author.name }}" class="avatar u-photo">
{% else %}
<img src="{{url_for(path='static/avatar-placeholder.png')}}" alt="{{ name }}" class="avatar u-photo">
{% endif %}