{% comment %} Generates a link to a single post. Expects the page representing the post as a 'post' variable. {% endcomment %}
{% assign firsttag = post.tags | first %} {% assign type = site.tagpages | where:"tag", firsttag | first %} {{ type.title }} by {{post.author}} - {% if post.location %}{{post.location}} - {% endif %} {{ post.date | date_to_string }}