Permalink
Browse files

fix: 多级分类标签的链接错误

  • Loading branch information...
Sampwood committed Sep 4, 2017
1 parent 4b889f5 commit fe772ebde007031c2ec2d35e2a4fd86c1e81ff6a
Showing with 1 addition and 1 deletion.
  1. +1 −1 layout/_partial/post/category.ejs
@@ -4,7 +4,7 @@
<ul class="article-tag-list">
<% post.categories.forEach(function(tag, i){ %>
<li class="article-tag-list-item">
<a href="<%= config.root %>categories/<%= tag.name.replace(/\s+/g, '') %>/" class="article-tag-list-link color<%= tag.name.length % 5 + 1 %>"><%-tag.name%></a>
<a href="<%= config.root %><%= tag.path %>/" class="article-tag-list-link color<%= tag.name.length % 5 + 1 %>"><%-tag.name%></a>
</li>
<% }) %>
</ul>

0 comments on commit fe772eb

Please sign in to comment.