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>2018-08-25 11:23:03 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2018-08-25 11:23:03 +0300
commitf569443641b15ac288e836a6d5ebe36465fa0141 (patch)
tree8ad69829544b23a9541098e0c0236dfa28696e6f /layouts
parent6132bd25e344d2ef0fdb5f896c9626538bc23131 (diff)
Iterate over all pages instead of only pages of type post
Resolves #1
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index edfc24e..94c114a 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,7 +2,7 @@
<main>
<div class="catalogue">
- {{ range (.Paginate (where .Pages "Type" "post")).Pages }}
+ {{ range (.Paginate .Pages).Pages }}
<a href="{{ .Permalink }}" class="catalogue-item">
<div>
<time datetime="{{ .PublishDate }}" class="catalogue-time">{{ .PublishDate.Format "January 2, 2006" }}</time>