Skip to content

Commit

Permalink
Merge pull request #301 from bobek/master
Browse files Browse the repository at this point in the history
Use Site.RegularPages for index
  • Loading branch information
halogenica committed Sep 5, 2019
2 parents 07f7656 + 1131754 commit 1d75ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.html
Expand Up @@ -9,7 +9,7 @@
{{ end }}

<div class="posts-list">
{{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
{{ $pag := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $pag.Pages }}
<article class="post-preview">
<a href="{{ .Permalink }}">
Expand Down

0 comments on commit 1d75ccd

Please sign in to comment.