diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index d3ab239..8dacaf8 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -28,7 +28,7 @@ 本文最后更新于:<%- date(post.updated, config.date_format) %> - <% if (post.tags && post.tags && post.tags.each) { %> + <% if (post.tags && post.tags.length && post.tags.each) { %> <% var items = []; post.tags.each(function(item){ @@ -57,7 +57,7 @@ <% } %> - <% if (post.prev.tags && post.prev.tags && post.prev.tags.each) { %> + <% if (post.prev.tags && post.prev.tags.length && post.prev.tags.each) { %> <% var items = []; post.prev.tags.each(function(item){ @@ -85,7 +85,7 @@ <% } %> - <% if (post.next.tags && post.next.tags && post.next.tags.each) { %> + <% if (post.next.tags && post.next.tags.length && post.next.tags.each) { %> <% var items = []; post.next.tags.each(function(item){