{% if post.author %}
{% assign author = post.author %}
{% elsif page.author %}
{% assign author = page.author %}
{% else %}
{% assign author = site.author %}
{% endif %}
{% if author %}
{% if site.googleplus_user %}
by {{ author }}
{% else %}
by {{ author }}
{% endif %}
{% endif %}