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