{% unless post %} {% assign post = page %} {% endunless %} {% assign post_author = post.author %} {% assign post_gravatar = 'http://www.fillmurray.com/82/82' %} {% assign modified_date = '' %} {% for author in site.data.authors %} {% if author.name == post.author %} {% if author.twitter %} {% capture post_author %}{{ post.author }}{% endcapture %} {% endif %} {% if author.gravatar %} {% capture post_gravatar %}https://gravatar.com/avatar/{{ author.gravatar }}{% endcapture %} {% endif %} {% endif %} {% endfor %} {% if post.modified_date %} {% capture modified_date %}Updated: {{ post.modified_date | date_to_long_string }}
{% endcapture %} {% endif %}
{{ post.author }}

By: {{ post_author }}
Published: {{ post.date | date_to_long_string }}
{% if page.url == "/blog/" or page.url contains "/blog/page" or page.url == "/" %} {{ post.excerpt | strip_html | truncatewords: 30, '' }} [...] {% endif %}