Content from _index.md is now included in list pages.

This commit is contained in:
Milutin Jovanović
2019-06-27 13:04:47 -04:00
parent 37ae1fe169
commit cb3849168a

View File

@@ -8,6 +8,7 @@
<p class="list-header-subtext">{{ .Description }}</p> <p class="list-header-subtext">{{ .Description }}</p>
<h1 class="list-header-title">{{ .Title }}</h1> <h1 class="list-header-title">{{ .Title }}</h1>
</header> </header>
{{ .Content }}
{{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}} {{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}}
{{- range $paginator.Pages -}} {{- range $paginator.Pages -}}
{{ .Render "li" }} {{ .Render "li" }}
@@ -21,4 +22,4 @@
{{ end -}} {{ end -}}
{{ partial "scripts.html" . }} {{ partial "scripts.html" . }}
</body> </body>
</html> </html>