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

github.com/syui/hugo-theme-air.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 e33de31..220ad94 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -36,8 +36,12 @@
</header>
<main id="content" class="content" role="main">
-
- {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }}
+ {{ $pages := .Pages }}
+ {{ if .IsHome }}
+ {{ $pages = .Site.RegularPages }}
+ {{ end }}
+ {{ $paginator := .Paginate $pages }}
+ <!--{{ $paginator := .Paginate (where .Data.Pages "Section" "post") }}-->
<div class="extra-pagination inner">
{{ partial "pagination.html" $paginator }}