| 1 | {{ define "page" -}} |
| 2 | {{ template "repo-header" . }} |
| 3 | <section class="shithub-repo-product-page"> |
| 4 | <aside class="shithub-repo-product-sidebar" aria-label="{{ .Tab.Heading }}"> |
| 5 | <h2>{{ .Tab.Heading }}</h2> |
| 6 | <nav aria-label="{{ .Tab.Heading }} sections"> |
| 7 | {{ range $i, $section := .Tab.Sections }} |
| 8 | <a href="#{{ $section.Anchor }}"{{ if eq $i 0 }} class="is-active" aria-current="page"{{ end }}>{{ $section.Title }}</a> |
| 9 | {{ end }} |
| 10 | </nav> |
| 11 | </aside> |
| 12 | <div class="shithub-repo-product-main"> |
| 13 | <header class="shithub-repo-product-head"> |
| 14 | <span class="shithub-repo-product-icon">{{ octicon .Tab.Icon }}</span> |
| 15 | <div> |
| 16 | <h1>{{ .Tab.Heading }}</h1> |
| 17 | <p>{{ .Tab.Description }}</p> |
| 18 | </div> |
| 19 | </header> |
| 20 | <div class="shithub-repo-product-blankslate"> |
| 21 | {{ range .Tab.Sections }} |
| 22 | <section id="{{ .Anchor }}" class="shithub-repo-product-section"> |
| 23 | <h2>{{ .Title }}</h2> |
| 24 | <p>{{ .Body }}</p> |
| 25 | </section> |
| 26 | {{ end }} |
| 27 | </div> |
| 28 | </div> |
| 29 | </section> |
| 30 | {{- end }} |