aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/_default/taxonomy_archive.html
blob: 614ef980e130e09bd13a7fc6db0630693fffca68 (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
{{ define "main" }}
  <main>
    <taxonomy-archive-list>
    {{ $title := .Title }}
    <h1>{{ .Title | markdownify }}</h1>
    <hr>
      <section>
        {{ range $taxonomy := .Site.Taxonomies }}
          {{ $title := .Title }}
          {{ range $tag, $article := $taxonomy }}
            {{ if ne $tag $title }}
              <h2>{{ $tag }}</h2>
              <ul>
                {{ range $article.Pages }}
                  <li>
                    <a
                      title="{{ .Title }}"
                      href="{{ .RelPermalink }}">
                      <code><time>{{- .Date.Format "02 Jan 2006" -}}</time></code>
                      <span>{{- .Title | markdownify -}}</span>
                    </a>
                  </li>
                {{ end }}
              </ul>
            {{ end }}
          {{ end }}
        {{ end }}
      </section>
    </taxonomy-archive-list>
  </main>
{{ end }}