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