diff options
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/_default/list.html | 2 |
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> |