commit 2f154564a18ddaeb39fc6264a3ecc66616e1773c
parent 2ddb8878d6b3de9c0a8b7ef967554c4fb67c464c
Author: Vimux <Vimux@users.noreply.github.com>
Date: Sat, 23 Sep 2017 17:09:41 +0300
Merge pull request #6 from adamsullovey/fix-list-pages-not-filtering
fix list page filtering
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -1,10 +1,10 @@
{{ partial "header.html" . }}
<main>
- {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
+ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
{{ partial "summary.html" . }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ partial "sidebar.html" . }}
-{{ partial "footer.html" . }}
-\ No newline at end of file
+{{ partial "footer.html" . }}