{% assign author = site %} {% if author %}
<span> By {{ author.name }} </span>
{% else %}
<span> By Post Author </span>
{% endif %}
{% assign author = site %} {% if author %}
<span> By {{ author.name }} </span>
{% else %}
<span> By Post Author </span>
{% endif %}