Permalink
Browse files

Merge pull request #607 from Sampwood/master

fix:  多级分类标签的链接错误
  • Loading branch information...
litten committed Sep 4, 2017
2 parents f729050 + fe772eb commit f72c6c241367012d5f9a8717b30f98a47ff9ff9a
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 f72c6c2

Please sign in to comment.