Commit 4e57af49 authored by smtw's avatar smtw
Browse files

fix order to alphabetic on list page, homepage pagination uses now also .Sites.Params.paginate

parent c3161de1
Pipeline #30259 passed with stages
in 1 minute and 34 seconds
......@@ -7,10 +7,13 @@
{{ end -}}
</ul>
{{ end }}
{{ $paginator := .Paginator (or .Site.Params.paginate 3) }}
{{ $paginator := .Paginate (.Pages.ByTitle) .Site.Params.paginate }}
<main role="main" class="article-list">
<h1 class="list-title">{{ .Title }}</h1>
{{ range $paginator.Pages }}
<div class="paginator-home">
{{ partial "paginator.html" $paginator }}
</div>
{{ range $paginator.Pages }}
{{ partial "article-list-item.html" . }}
{{ end }}
</main>
......
......@@ -23,7 +23,7 @@
</ul>
{{ end }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) .Site.Params.paginate }}
<div class="paginator-home">
{{ partial "paginator.html" $paginator }}
......
......@@ -246,7 +246,7 @@ footer a {
white-space: nowrap;
}
.homepage .paginator-home {
.paginator-home {
margin: 4rem 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment