26 lines
360 B
HTML
26 lines
360 B
HTML
{{ define "main" }}
|
|
<h2>{{ .Title }}</h2>
|
|
|
|
{{ if eq .Title "Wiki Index" }}
|
|
<ul>
|
|
{{ range .Pages }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ else }}
|
|
{{ partial "pageslist.html" }}
|
|
{{ end }}
|
|
|
|
<hr>
|
|
|
|
{{ if $.Params.enabletoc }}
|
|
<div class="toc">
|
|
{{ .Page.TableOfContents }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ .Content }}
|
|
|
|
{{ end }} |