35 lines
515 B
HTML
35 lines
515 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 }}
|
|
<h3>Subpages:</h3>
|
|
<ul>
|
|
<li><a href="..">Go back</a></li>
|
|
{{ range .Pages }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a> <br>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
|
|
<hr>
|
|
|
|
{{ if $.Params.enabletoc }}
|
|
<div class="toc">
|
|
{{ .Page.TableOfContents }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ .Content }}
|
|
|
|
{{ end }}
|