{% capture category %}{{ post.categories | size }}{% endcapture %} <h1><a href="{{ post.url }}">{{post.title}}</a></h1> <time datetime="{{ post.date | datetime }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time> {% if category != '0' %} <footer> <span class="categories">posted in {{ post.categories | category_links }}</span> </footer> {% endif %}