Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htr3n/hyde-hyde.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Valecillos <valecillosjg@gmail.com>2019-08-18 14:18:36 +0300
committerJose Valecillos <valecillosjg@gmail.com>2019-08-18 14:18:36 +0300
commit350fe18188c01564ca83bd8e500b7837fcae0e3d (patch)
treee225b40eea2f9825f4a4570697addcc3a017e03b
parent1c50bcc7ec7f0c6d23cb8194d42ede364c48eb99 (diff)
Using site.Params.mainSections for listing posts
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 003f4d9..c1a00bb 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -4,7 +4,7 @@
{{ define "content" }}
<div class="post-list">
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ if .Draft }}
{{ .Scratch.Set "draftPage" true }}