aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/_default/taxonomy_archive.html
blob: f19838509fee8780c71ee038ecd6b9e626235602 (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" }}
<section class="section is-fullheight" itemscope itemtype="http://schema.org/AboutPage">
  <div class="container">
    <div class="columns is-centered">
      <div class="column is-7">
        {{ $title := .Title }}
        <article class="content">
          <h1 class="article__list smallcaps title">{{ .Title | title }}</h1>
          {{ range $taxonomy := .Site.Taxonomies }}
            {{ $title := .Title }}
            {{ range $tag, $article := $taxonomy }}
              {{ if ne $tag $title }}
                <h1 class="article__list smallcaps title is-4">{{ $tag }}</h1>
                <ul class="article__list">
                  {{ range $article.Pages }}
                    <li>
                      <a title="{{ .Title }}" class="is-block" href="{{ .RelPermalink }}">
                        <span class="article__list__date monospace has-text-grey-dark">{{ .Date.Format "02 Jan 2006" }}</span>{{ .Title }}
                      </a>
                    </li>
                  {{ end }}
                </ul>
              {{ end }}
            {{ end }}
          {{ end }}
        </article>
      </div>
    </div>
  </div>
</section>
{{ end }}