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

github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmir Ribic <ribice@gmail.com>2019-08-20 08:33:55 +0300
committerEmir Ribic <ribice@gmail.com>2019-08-20 08:33:55 +0300
commit925ce982d67456650904fed3279026691b3a76b1 (patch)
treea969a1516ee7c560d7754610354841ba1a23fe44
parentee876204e8480838d1099f86b0f4d822d3caa463 (diff)
Fix for Hugo #682
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/index.html8
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 }}