{{ define "main" }}
  <h1>{{ .Title }}</h1>
  {{ .Content }}

  <section>
    <table id="taxonomy-table">
      <!-- <thead>
        <tr>
          <th>Taxonomy</th>
          <th>Terms</th>
        </tr>
      </thead> -->
      <tbody>
        {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
        {{ with $taxonomy }}
        <tr>
          <td>
            <a 
              class="taxonomy-name" 
              href="{{ "/" | relLangURL }}{{ $taxonomyname }}">
              {{ $taxonomyname | strings.FirstUpper }}
            </a>
          </td>
          <td>
            {{ range $key, $value := $taxonomy }}
              {{ partial "term-link.html" (dict "name" $value.Page.Title "taxonomy" $taxonomyname) }}
            {{ end }}
          </td>
        </tr>
        {{ end }}
        {{ end }}
      </tbody>
    </table>
  </section>


{{ end }}
