From fb21683b4487266b0af77006f00343e16f379d4f Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 21 Nov 2018 14:10:01 +0800 Subject: [PATCH] categories --- layout/_partial/categories.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/categories.ejs b/layout/_partial/categories.ejs index d841558..c54c01f 100755 --- a/layout/_partial/categories.ejs +++ b/layout/_partial/categories.ejs @@ -1,4 +1,4 @@ -<% if (post.categories && post.categories && post.categories.forEach){ %> +<% if (post.categories && post.categories.length && post.categories.forEach){ %> <% var cats = []; post.categories.forEach(function(cat){