From 9ebf96f7396f6a73e8c4783353649e7309244fc8 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 8 Nov 2018 10:36:58 +0800 Subject: [PATCH] update --- layout/_partial/article.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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){