blob: 73e629a5a1410d411d836774ae6d3e0cb3168e3e (
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
|
{{ define "main" }}
{{ if eq .Section "docs" }}
<div class="docs">
{{ partial "docs-nav.html" . }}
<article>
<div class="docs-head">
<h1>{{ .Title }}</h1>
{{ with .Content }}{{ . }}{{ end }}
</div>
<ul class="pages">
{{ range .Pages.ByWeight }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ with or .Description (.Summary | plainify | truncate 150) }}<span class="summary">{{ . }}</span>{{ end }}
</li>
{{ end }}
</ul>
</article>
</div>
{{ else }}
<article>
<h1>{{ .Title }}</h1>
{{ .Content }}
</article>
{{ end }}
{{ end }}
|