diff options
author | Jonathan Rutheiser <jonathan.rutheiser@gmail.com> | 2017-01-16 20:53:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-16 20:53:23 +0300 |
commit | 88ae856cfa92c648c1a95b071285930c91acf80b (patch) | |
tree | 00dcaea5cb8b5db9b8b5b3b70e8c8b4930df4584 | |
parent | 7be4c4561e56c277eb7f4dc832cbcad311b6a200 (diff) | |
parent | 2616b5c05fb113267ca43f13a3cdaa03ce1360a4 (diff) |
Merge pull request #9 from jrutheiser/fix-homepage-template-list
Fix homepage posts output
-rw-r--r-- | layouts/index.html | 4 |
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"> |