{% extends 'base.html.twig' %}

{% block title %}{{title}} - Tags | Alex Daniels{% endblock %}


{% block metatitle %}{{title}} - Tags | Alex Daniels {% endblock %}
{% block ogtitle %}{{title}} - Tags | Alex Daniels {% endblock %}
{% block twittertitle %}Writing and Albums that contain the tag '{{title}}'{% endblock %}
{% block metadescription %}Writing and Albums that contain the tag '{{title}}'{% endblock %}
{% block ogdescription %}Writing and Albums that contain the tag '{{title}}'{% endblock %}
{% block twitterdescription %}Writing and Albums that contain the tag '{{title}}'{% endblock %}


{% block body %}
    <section class="tag">
        <h2>{{title}}</h2>
        {% if posts|length %}
            <div class="posts">
                <h3>Posts</h3>
                <ul>
                    {% for post in posts %}
                        <li><a href="/words/{{post.url}}">{{post.title}} - {{ post.date|date('l M d Y') }}</a></li>
                    {% endfor %}
                </ul>
            </div>
        {% endif %}
        {% if photos|length %}
            <div class="photos">
                <h3>Photos</h3>
                <ul>
                    {% for photo in photos %}
                        <li><a href="/photos/{{photo.url}}">{{photo.title}} - {{ photo.date|date('l M d Y') }}</a></li>
                    {% endfor %}
                </ul>
            </div>
        {% endif %}
    </section>
{% endblock %}
