summaryrefslogtreecommitdiffhomepage
path: root/web/layouts/partials/docs-nav.html
blob: ed5322e7ab56f5a076e03dd03c9a6128024a7e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ with site.GetPage "/docs" }}
<aside>
  <div class="group pages">
    <h2>Docs</h2>
    {{ range .Pages.ByWeight }}
      {{ if eq .RelPermalink $.RelPermalink }}
      <a href="{{ .RelPermalink }}" aria-current="page">{{ .Title }}</a>
      {{ else }}
      <a href="{{ .RelPermalink }}">{{ .Title }}</a>
      {{ end }}
    {{ end }}
  </div>
  {{ $spec := "zash-spec" | relURL }}
  {{ $ref := "reference/" | relURL }}
  <div class="group source">
    <h2>More</h2>
    <a href="{{ $spec }}.html">Specification (HTML)</a>
    <a href="{{ $spec }}.pdf">Specification (PDF)</a>
    <a href="{{ $ref }}">Source reference</a>
  </div>
</aside>
{{ end }}