blob: eccd90b07d830048a7ba3a1b46675bb9b68589af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{{ define "main" }}
{{ if eq .Section "docs" }}
<div class="docs">
{{ partial "docs-nav.html" . }}
<article>
<div class="docs-head">
<p class="kicker">docs</p>
<h1>{{ .Title }}</h1>
{{ with .Content }}{{ . }}{{ end }}
</div>
<ul class="pages">
{{ range .Pages.ByWeight }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ with .Description }}<span class="summary">{{ . }}</span>{{ end }}
</li>
{{ end }}
</ul>
</article>
</div>
{{ else }}
<article>
<h1>{{ .Title }}</h1>
{{ .Content }}
</article>
{{ end }}
{{ end }}
|