diff options
author | Emir Ribic <ribice@gmail.com> | 2019-09-09 15:17:17 +0300 |
---|---|---|
committer | Emir Ribic <ribice@gmail.com> | 2019-09-09 15:17:17 +0300 |
commit | 302297164b08e65b18344ec7bb81901ad9dce95a (patch) | |
tree | b1f0d6a5cdf47efb970426a3bc1c075f595e1802 | |
parent | 794f30ae572228ffd4453dc41a2e79d265d8386c (diff) |
Fix index
-rw-r--r-- | layouts/index.html | 7 |
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 |