aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/taxonomy.html
blob: f2c00d5b23135ed4c044f22ecf114c8c04e1f984 (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) }}
    <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>