{% extends "_layout/base.html" %}
{% block title %}
Categories
{% endblock %}
{% block content %}

{% for category in categories recursive %}
<h3 id="{{ category }}" class="main-title">{{ category }}</h3>
{% for post in categories[category].posts %}
<div class="archives">
<div id="articles-content">
    <article class="post clearfix">
        <p class="meta-info">{{ post.pub_time.strftime('%b %d, %Y') }} , {% for category in post.categories %}{{ category }} {% endfor %}</p>
        <h4><a href="{{ post.url }}">{{ post.title }}</a></h4>
    </article>
</div>

</div>
{% endfor %}
{% endfor %}


{% endblock %}
