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

github.com/jrutheiser/hugo-lithium-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Rutheiser <jonathan.rutheiser@gmail.com>2017-01-16 20:45:40 +0300
committerJonathan Rutheiser <jonathan.rutheiser@gmail.com>2017-01-16 20:45:40 +0300
commit2616b5c05fb113267ca43f13a3cdaa03ce1360a4 (patch)
tree00dcaea5cb8b5db9b8b5b3b70e8c8b4930df4584
parent7be4c4561e56c277eb7f4dc832cbcad311b6a200 (diff)
Fix homepage post list output #8
-rw-r--r--layouts/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index d2ee350..eb06410 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -3,9 +3,9 @@
<main class="content" role="main">
<div class="archive">
- {{ range .Data.Pages.GroupByDate "2006" }}
+ {{ range (where .Site.Pages "Type" "post").GroupByDate "2006" }}
<h2 class="archive-title">{{ .Key }}</h2>
- {{ range where .Pages "Section" "post" }}
+ {{ range .Pages }}
<article class="archive-item">
<a href="{{ .Permalink }}" class="archive-item-link">{{ .Title }}</a>
<span class="archive-item-date">