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:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html8
1 files changed, 6 insertions, 2 deletions
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 }}