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

github.com/hauke96/hugo-theme-hamburg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Stieler <mail@hauke-stieler.de>2020-01-17 17:03:50 +0300
committerHauke Stieler <mail@hauke-stieler.de>2020-01-17 17:03:50 +0300
commit253078ca9f955baad682ed5cc6e60addb05a354c (patch)
tree123c68179948b125059406d7a34a4927686cf9b6
parent205969c849242b5024063ad0bffa57c902fd575e (diff)
parentf7ab30b4c67273b332a7b6828a029252a62dac6c (diff)
Merge branch 'master' of https://github.com/whchi/hugo-theme-hamburg into whchi-master
-rw-r--r--layouts/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index f24966c..65d8284 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,7 @@
{{ partial "header.html" . }}
<div class="article-list">
- {{ range $index, $page := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
+ {{ range $index, $page := $paginator.Pages }}
{{ if ne $index 0 }}
<div class="delimiter"></div>
{{ end }}