From 488a1a7f1ca256115452563308913c8ba8994c72 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 11 Oct 2017 20:06:09 +0100 Subject: [PATCH] project widget: Fix error when not using any filters (Fix #306) --- layouts/partials/widgets/projects.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/widgets/projects.html b/layouts/partials/widgets/projects.html index 0e143f3c..d3ef585b 100644 --- a/layouts/partials/widgets/projects.html +++ b/layouts/partials/widgets/projects.html @@ -15,7 +15,7 @@ {{ end }} - {{ if gt (len $page.Params.filter) 1 }} + {{ if and (($page.Params.filter) (gt (len $page.Params.filter) 1)) }}