This repository has been archived on 2022-01-14. You can view files and clone it, but cannot push or open issues/pull-requests.
nwt/layouts/_default/list.html

26 lines
355 B
HTML

{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ if eq .Title "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 }}