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:
-rw-r--r--layouts/index.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html
index d5e2c03..37f41f1 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,9 +2,8 @@
{{ partial "nav" . }}
<section class="section">
<div class="container">
- {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
- {{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
- {{ range $paginator.Pages }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Params.hidden" "ne" true) }}
+ {{ range sort .Paginator.Pages }}
<article>
<div class="subtitle tags is-6 is-pulled-right">
{{ if .Params.tags }}
@@ -26,4 +25,4 @@
</div>
</section>
{{ partial "pager" . }}
-{{ partial "footer" . }}
+{{ partial "footer" . }} \ No newline at end of file