1
Fork 0

Show just blog posts in index

This commit is contained in:
Jake Howard 2017-06-08 22:14:51 +01:00
parent eaf93b7986
commit 4f04b611d3

View file

@ -71,10 +71,11 @@
<div class="box special" id="recent-posts">
<h2>Recent Posts</h2>
<div class="row">
{{ range first .Site.Params.index_items (where .Data.Pages.ByDate "Section" "!=" "") }}
{{ range first .Site.Params.index_items (where .Data.Pages.ByDate "Section" "posts") }}
{{ partial "box.html" . }}
{{ end }}
</div>
<h4><a href="/posts/">All Posts</a></h4>
</div>
</section>
{{ partial "page_end.html" . }}