{{ define "main" }}
<main class="container cat-page-content">
    <header>
        <h2>{{.Title}}</h2>
    </header>
    <section class="content">
        <!-- "{{.Content}}" pulls from the markdown content of the corresponding
             _index.md -->
        {{.Content}}
    </section>
    <article class="posts-list">
        <!-- Ranges through content/posts/*.md in reverse order, then displays
             the post title, the date and categories (list-footer template) -->
        {{ range .Pages.ByPublishDate.Reverse }}
        <article>
            <a href="{{.Permalink}}">{{.Title}}</a>
            {{ partial "lists-footer.html" . }}
        </article>
        {{ end }}
    </article>
</main>
{{ end }}
