aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/home.records.html
blob: 1fe7425d6916b1a0d51b995d4d14efe166d73da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{ define "title" }}Tags Archive  — {{ end }}
{{ define "description" }}This page contains an archive of all tags — {{ end }}
{{ define "styles" }}
<style>
  {{ partial "styles-navigator.html" (dict "Link" "/archives/tags/") | safeCSS }}
</style>
{{ end }}

{{ define "middle" }}

  {{ partial "navigator-middle.html"
    (dict
      "Title"     "Records"
      "Subtitle"  (partial "count-tags.html" .)
      "Icon"      "arrow-left"
      "IconLabel" "Back"
      "Href"      "/"
      "Id"        "back"
      "Context"   .
    )
  }}

  <records-archive>
    <item-list>
    {{ range (.Paginator.Pages.GroupByDate "2006") }}
      {{ range (first 1 .Pages) }}
        <h1>{{ .Date.Format "2006" }}</h1>
      {{ end }}
      <ul>
        {{ range .Pages }}
          <li>
            <span>
              <code title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}">{{ .Date.Format "02 Jan" }}</code>
            </span>
            <span>{{ partial "meta-tags.html" . }} &mdash; {{ partial "meta-title.html" . }}</span>
            <span>@{{ partial "author-user.html" . }}</span>
          </li>
        {{ end }}
      </ul>
    {{ end }}
    </item-list>
  </records-archive>

  {{ partial "pagination.html" . }}

{{ end }}

{{ define "right" }}
  {{- partial "navigator-right.html" . -}}
{{ end }}