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

github.com/xiaoheiAh/hugo-theme-pure.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.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 1e3beeb..6cf9c3a 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,11 @@
{{- define "content"}}
<main class="main" role="main">
- {{/* partial "archive-list.html" . - */}}
+ {{/* partial "archive-list.html" . - */}}
<div class="content article-list">
<!-- {{- print ($.Scratch.Get "pages") }} -->
- {{- range $.Scratch.Get "pages" }}
+ {{ $paginator := .Paginate .Site.RegularPages }}
+ {{ range $paginator.Pages }}
<article
class="article article-type-page"
itemscope
@@ -30,7 +31,7 @@
</article>
{{- end -}}
</div>
- {{/* partial "pagination.html" . - */}}
+ {{ partial "pagination.html" . }}
</main>
{{- end }}