Show just blog posts in index
This commit is contained in:
parent
eaf93b7986
commit
4f04b611d3
1 changed files with 2 additions and 1 deletions
|
@ -71,10 +71,11 @@
|
||||||
<div class="box special" id="recent-posts">
|
<div class="box special" id="recent-posts">
|
||||||
<h2>Recent Posts</h2>
|
<h2>Recent Posts</h2>
|
||||||
<div class="row">
|
<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" . }}
|
{{ partial "box.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
<h4><a href="/posts/">All Posts</a></h4>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{ partial "page_end.html" . }}
|
{{ partial "page_end.html" . }}
|
||||||
|
|
Loading…
Reference in a new issue