better filter
This commit is contained in:
parent
42cdeefe3d
commit
2b10f74461
1 changed files with 3 additions and 7 deletions
|
@ -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 }}
|
||||
{{ partial "box.html" . }}
|
||||
{{ 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 "" }}
|
||||
{{ partial "box.html" . }}
|
||||
{{ end }}
|
||||
{{ range first 6 (where .Data.Pages.ByDate "Section" "!=" "") }}
|
||||
{{ partial "box.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue