Skip to content

Commit

Permalink
fix issue laozhu#141
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal authored May 26, 2022
1 parent 0be94f0 commit 5e849aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<header class="list-header offscreen">
<h2 class="list-label">All Posts</h2>
</header>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") (index .Site.Params "paginate" | default 10) }}
{{- $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) -}}
{{ if ne $paginator.TotalPages 0 }}
{{ range $paginator.Pages.ByDate.Reverse }} {{ .Render "summary" }} {{ end }}
{{ else }}
Expand Down

0 comments on commit 5e849aa

Please sign in to comment.