From 2b10f74461d362562aa06a7106e363cfe6b8be84 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 7 May 2017 18:25:59 +0100 Subject: [PATCH] better filter --- layouts/index.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index bcc4158..29f7803 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -44,9 +44,7 @@

Projects

{{ range first 6 (where .Data.Pages.ByDate "Section" "projects") }} - {{ if ne .Section "" }} - {{ partial "box.html" . }} - {{ end }} + {{ partial "box.html" . }} {{ end }}

All Projects

@@ -55,10 +53,8 @@

Recent Posts

- {{ 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 }}