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
Raw Normal View History

2021-11-29 21:30:06 -05:00
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ if eq .Title "Index" }}
2021-11-29 21:30:06 -05:00
<ul>
{{ range .Pages }}
2021-11-30 09:56:44 -05:00
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
2021-11-29 21:30:06 -05:00
{{ end }}
</ul>
{{ else }}
2021-11-30 09:56:53 -05:00
{{ partial "pageslist.html" }}
2021-11-29 21:30:06 -05:00
{{ end }}
<hr>
{{ if $.Params.enabletoc }}
<div class="toc">
{{ .Page.TableOfContents }}
</div>
{{ end }}
{{ .Content }}
2021-11-30 09:56:53 -05:00
{{ end }}