Merge pull request #301 from bobek/master

Use Site.RegularPages for index
This commit is contained in:
Michael Romero 2019-09-04 21:15:27 -07:00 committed by GitHub
commit 1d75ccd689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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