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

github.com/bake/solar-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbake <bake@192k.pw>2019-05-20 23:01:04 +0300
committerbake <bake@192k.pw>2019-05-20 23:01:04 +0300
commit802a2b612ae5c6122662fcecee3b7f3e2633282f (patch)
treedda6c18408b6d11d3095e5294ce5c04147d12b7a
parent1c9c73c8df544582b5e1d183a25b7381ac31ec2f (diff)
Use mainSections instead of .Paginator.Pages
-rw-r--r--exampleSite/config.toml2
-rw-r--r--layouts/_default/list.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e1cff48..2d2ae81 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,6 +1,6 @@
title = "Solar Theme"
theme = "solar-theme-hugo"
-paginate = 2
+paginate = 5
[params]
scheme = "dark"
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ae4e208..d076485 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,4 +1,4 @@
-{{ range sort .Paginator.Pages }}
+{{ range where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
<article class="post">
<h1><a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Draft }}(Draft){{ end }}</h1>