diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index 37f41f1..14da1f4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,10 @@ {{ partial "nav" . }} <section class="section"> <div class="container"> - {{ $paginator := .Paginate (where .Site.RegularPages "Params.hidden" "ne" true) }} + {{- $pctx := . -}} + {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} + {{- $pages := $pctx.RegularPages -}} + {{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }} {{ range sort .Paginator.Pages }} <article> <div class="subtitle tags is-6 is-pulled-right"> |