diff options
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/index.html | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index cf5546e..72017f1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,7 @@ googleAnalytics = "" # Number of posts per page Paginate = 5 enableRobotsTXT = true +mainSections = ["post"] [params.features] disqusOnDemand = true # Load Disqus comments on click diff --git a/layouts/index.html b/layouts/index.html index f4c67a5..31a68be 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,8 +2,12 @@ {{ partial "nav" . }} <section class="section"> <div class="container"> - {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }} - {{ range sort .Paginator.Pages }} + {{ $pages := .Pages }} + {{ if .IsHome }} + {{ $pages = .Site.RegularPages }} + {{ end }} + {{ $paginator := .Paginate $pages }} + {{ range .Paginator.Pages }} <article> <div class="subtitle tags is-6 is-pulled-right"> {{ if .Params.tags }} |