Skip to content

Commit

Permalink
fix: optimize article meta info icon
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Sep 25, 2023
1 parent da77c5c commit 72157d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/_partial/article-meta-info.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const home_tag_limit_number = theme?.home_article?.tag?.limit || 3
</span>
<% } %>
<% if ((post.categories.length && theme?.home_article?.category?.enable === true) || page_type === 'post') { %>
<% if (post.categories.length && (theme?.home_article?.category?.enable === true || page_type === 'post')) { %>
<span class="meta-info-item article-category border-box"><i class="icon fas fa-folder"></i>&nbsp;
<ul>
<% post.categories.forEach((category, i) => {
Expand All @@ -42,7 +42,7 @@ const home_tag_limit_number = theme?.home_article?.tag?.limit || 3
</span>
<% } %>
<% if ((post.tags.length && theme?.home_article?.tag?.enable === true) || page_type === 'post') { %>
<% if (post.tags.length && (theme?.home_article?.tag?.enable === true || page_type === 'post')) { %>
<span class="article-tag meta-info-item border-box">
<i class="icon fas fa-tags"></i>&nbsp;
<ul>
Expand Down

0 comments on commit 72157d9

Please sign in to comment.