{{ define "main" }}
    <main class="posts">
        <h1>{{ .Title }}</h1>

        {{- if .Content }}
        <div class="content">{{ .Content }}</div>
        {{- end }}
        {{- if .Data.Pages }}

            {{ range (.Paginate (.Data.Pages.GroupByDate "2006")).PageGroups  }}
            <div class="posts-group">
                <div class="post-year">{{ .Key }}</div>
                    <ul class="posts-list">
                        {{- range .Pages }}
                        <li class="post-item">