Add color-per-page support, render _index, change configs to JSON

This commit is contained in:
Dustin L. Dodson
2020-05-30 17:48:17 -07:00
parent 0a9b08f405
commit 1cf39d9541
7 changed files with 109 additions and 99 deletions
+6 -1
View File
@@ -14,6 +14,11 @@
{{ end }}
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
{{ if len .Content }}
<h1>{{.Title}}</h1>
{{ .Content }}
{{ end }}
{{ range $paginator.Pages }}
<div class="post on-list">
<h1 class="post-title">
@@ -62,4 +67,4 @@
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}
{{ end }}