mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Bud Parr
20.00.2017 b0c7d8bd88549155e0aca8b3ff1cec30a0c78d1b
layouts/_default/terms.html
@@ -1,29 +1,22 @@
{{ define "main" }}
    {{ $data := .Data }}
  <article class="cf pa3 pa4-m pa4-l">
    <div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
      {{ .Content }}
    </div>
  </article>
  <div class="mw8 center">
    {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
      <h1>
        {{ $taxonomyname | humanize }}
      </h1>
      <section class="ph4">
        {{ range $key, $value := $taxonomy }}
          <h2 class="f1">
            <a href="{{ $key | urlize }}" class="link blue hover-black">
              {{ $key }}
            </a>
          </h2>
          {{ range $value.Pages }}
            {{ partial "summary.html" . }}
          {{ end }}
    <section class="ph4">
      {{ range $key, $value := .Data.Terms }}
        <h2 class="f1">
          <a href="{{ "/" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}" class="link blue hover-black">
            {{ $.Data.Singular | humanize }}: {{ $key }}
          </a>
        </h2>
        {{ range $value.Pages }}
          {{ partial "summary.html" . }}
        {{ end }}
      </section>
    {{ end }}
      {{ end }}
    </section>
  </div>
{{ end }}