{% if post.owner.wagtail_userprofile.avatar.url %} Avatar {% endif %}

{{ post.author_name }}