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:
-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>