diff --git a/layout/home-content.ejs b/layout/home-content.ejs
index 18255ab..2563289 100644
--- a/layout/home-content.ejs
+++ b/layout/home-content.ejs
@@ -24,7 +24,7 @@
<%= date(post.date, 'YYYY-MM-DD') %>
<% if (theme.magic.enable === true) { %>
- <% if (theme.home_article.category.enable === true) { %>
+ <% if (post.categories.length && theme.home_article.category.enable === true) { %>
<% } %>
- <% if (theme.home_article.tag.enable === true) { %>
+ <% if (post.tags.length && theme.home_article.tag.enable === true) { %>