1
Fork 0

better filter

This commit is contained in:
Jake Howard 2017-05-07 18:25:59 +01:00
parent 42cdeefe3d
commit 2b10f74461

View file

@ -44,9 +44,7 @@
<h2>Projects</h2>
<div class="row">
{{ range first 6 (where .Data.Pages.ByDate "Section" "projects") }}
{{ if ne .Section "" }}
{{ partial "box.html" . }}
{{ end }}
{{ end }}
</div>
<h4><a href="/projects/">All Projects</a></h4>
@ -55,10 +53,8 @@
<div class="box special">
<h2>Recent Posts</h2>
<div class="row">
{{ range first 6 (where .Data.Pages.ByDate "Kind" "page") }}
{{ if ne .Section "" }}
{{ range first 6 (where .Data.Pages.ByDate "Section" "!=" "") }}
{{ partial "box.html" . }}
{{ end }}
{{ end }}
</div>
</div>