{{ define "main" }}

  <div class="py-4 py-lg-6">
    <h1 class="container-fluid display-4">Архивы</h1>

    <div class="blog-archives" data-controller="archives" noprefetch>
      {{ $archives := newScratch }}
      {{ range .Site.Pages.GroupByDate "2006" }}
        {{ $year := .Key }}
        {{ $pages := .Pages }}
        {{ $.Scratch.Set "break" 0 }}
        {{ range .Pages }}
          {{ if eq ($.Scratch.Get "break") 0 }}
            {{ if and (eq .Type "posts") (eq .Kind "page") }}
            