Add header to list pages. Fix header spacing
This commit is contained in:
@@ -51,13 +51,13 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="posts">
|
||||
<section class="posts">
|
||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||
{{ range $paginator.Pages.ByDate.Reverse }}
|
||||
{{ partial "collection.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
{{ define "main" }}
|
||||
<h1 class="section-header">{{ .Title }}<a href="{{ .Permalink }}" class="hanchor" arialabel="Anchor">⌗</a></h1>
|
||||
{{ with .Content }}
|
||||
<div class="index-content">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="posts">
|
||||
<section class="posts">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
{{ partial "collection.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user