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

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2019-09-30 11:27:20 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2019-09-30 11:27:39 +0300
commitaeb416a1d4d1d3cf7d2424ce845361583fa75ed2 (patch)
tree29f286c529407fd73c116d9de15192485fcac7fc
parent7eb3a3f2d4a0748c66195481acdf8f1d59425282 (diff)
Range over .Site.RegularPages in index.html
See #28
-rw-r--r--layouts/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 8b4b147..2bb71f8 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -4,11 +4,11 @@
{{ partial "index/introduction.html" . }}
<div class="catalogue">
- {{ range (.Paginate .Pages).Pages }}
+ {{ range (.Paginate .Site.RegularPages).Pages }}
{{ .Render "summary" }}
{{ end }}
</div>
-
+
<div class="pagination">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
@@ -16,7 +16,7 @@
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
{{ end }}
-
+
<span>{{ .Paginator.PageNumber }}</span>
</div>
</main>