From c86b1adcceb047425c22b732f2e87e29b5dceab2 Mon Sep 17 00:00:00 2001
From: Esteban Torres <me@estebantorr.es>
Date: Mon, 18 May 2020 16:11:44 +0000
Subject: [PATCH] Make pagination sections configurable
---
layouts/index.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/index.html b/layouts/index.html
index 7c40447..e7f7e71 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,5 @@
{{ define "main" }}
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
<div class="post animated fadeInDown">
<div class="post-title">
@@ -25,4 +25,4 @@
<div class="pagination">
{{ template "_internal/pagination.html" . }}
</div>
-{{ end }}
\ No newline at end of file
+{{ end }}
--
Gitblit v1.10.0