<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">

{{ partial "head.html" . }}

<body hx-boost="true" lang="{{ .Site.Language.Lang }}">
  {{ partial "nav.html" . }}

  <header class="blog">
    <div class="container">
      <div class="row">
        <div class="col s12 m9 l9">
          <h2><a href="{{ "blog"  | relLangURL }}">Blog</a></h2>
        </div>
      </div>
    </div>
  </header>

  <div id="page-content">
    <div class="container">
        <div class="row">
            <div class="col s12 m9 l9">
                <section>
                  <div class="list-group">
                    {{ $paginator := .Paginate ((where .Pages "Type" "blog").ByParam "LastmodDate")}}
                    {{ range $paginator.Pages }}
                      {{ partial "partials/article-item.html" (dict "article" . "tags" "cattags") }}
                    {{ end }}
                      </div>
        
                    {{ partial "partials/pagination.html" (dict "page" . "format" "default" "align" "center") }}

                </section>
            </div>
            {{ partial "partials/widgets/sidebar.html" . }}
        </div>
    </div>
  </div>
  <!-- /#content -->
  {{ partial "footer.html" . }}
</body>
</html>