{% if post.author %}{% assign author = site.data.authors %}{% else %}{% assign author = site.data.authors %}{% endif %}

<span class='meta'>
    <i class='fa fa-clock-o'></i><time itemprop='datePublished' content='{{ post.date | date: '%F' }}' datetime='{{ post.date | date_to_xmlschema }}'> {{ post.date | date: "%d %b %Y" }}</time>
    &nbsp; | &nbsp;
    <i class='fa fa-user'></i> <span itemprop='author'><a href='//www.perry-online.me.uk/author/{{ author.name | downcase | replace: '& ', '' | replace: ' ', '-' }}/' title='{{ author.name }}'>{{ author.name }}</a></span>

    {% if post.categories.size > 0 %} &nbsp; | &nbsp; 
    <i class='fa fa-folder-open'></i> <span itemprop='keywords'>{% for category in post.categories %}
        <a href='/{{ category }}/' class="{{ category }}">{% if site.post_categories %}{{ site.post_categories[category].name }}{% else %}{{ category}}{% endif %}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}
    </span>{% endif %}

    {% if post.tags.size > 0 %} &nbsp; | &nbsp; 
    <i class='fa fa-tags'></i> <span itemprop='keywords'>{% for tag in post.tags %}
        <a href='/tags/{{ tag | slugify }}/' class="{{ tag }}">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}
    </span>{% endif %}

    {% if post.locations %} &nbsp; | &nbsp; 
    <i class='fa fa-map-marker'></i> <span itemprop='keywords'>{% for location in post.locations %}
        <a class="location" href="{{ site.locations[location].link }}">{{ site.locations[location].name }}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}
    </span>{% endif %}
</span>