aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/taxonomy.html
blob: db82e4c8fdb38403576882a6d2655d25a7e47496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<aside class="book-toc fixed">
<nav>
  <ul>
  {{ range $term, $_ := .Site.Taxonomies }}
    {{ with $.Site.GetPage (printf "/%s" $term | urlize) }}
    <li class="book-section-flat">
      <strong>{{ .Title | title }}</strong>
      <ul>
      {{ range .Pages }}
        <li>
          <a href="{{ .RelPermalink }}">{{ .Title }}</a>
        </li>
      {{ end }}
      </ul>
    </li>
    {{ end }}
  {{ end }}
  </ul>
</nav>
</aside>