Add header to list pages. Fix header spacing
This commit is contained in:
parent
5992889676
commit
43f70f8cd2
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
&-header {
|
&-header {
|
||||||
font-size: 1.8rem !important;
|
font-size: 1.8rem !important;
|
||||||
margin-top: 3em !important;
|
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,13 +51,13 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="posts">
|
<section class="posts">
|
||||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||||
{{ range $paginator.Pages.ByDate.Reverse }}
|
{{ range $paginator.Pages.ByDate.Reverse }}
|
||||||
{{ partial "collection.html" . }}
|
{{ partial "collection.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<h1 class="section-header">{{ .Title }}<a href="{{ .Permalink }}" class="hanchor" arialabel="Anchor">⌗</a></h1>
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<div class="index-content">
|
<div class="index-content">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="posts">
|
<section class="posts">
|
||||||
{{ range .Pages.ByDate.Reverse }}
|
{{ range .Pages.ByDate.Reverse }}
|
||||||
{{ partial "collection.html" . }}
|
{{ partial "collection.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user