Add color-per-page support, render _index, change configs to JSON
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user