pref: optimize multilevel classification display of post
This commit is contained in:
parent
b16077d7ad
commit
4f6856db70
|
@ -8,7 +8,7 @@
|
|||
<ul>
|
||||
<% articleObject.categories.forEach((category, i) => { %>
|
||||
<li>
|
||||
<%= i === 0 ? '' : '| ' %><a href="<%- url_for(category.path) %>"><%= category.name %></a>
|
||||
<%= i === 0 ? '' : '> ' %><a href="<%- url_for(category.path) %>"><%= category.name %></a>
|
||||
</li>
|
||||
<% }); %>
|
||||
</ul>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<i class="fa fa-folder"></i>
|
||||
<ul>
|
||||
<% post.categories.forEach((category, i) => { %>
|
||||
<li><%= i === 0 ? '' : '| ' %><a
|
||||
<li><%= i === 0 ? '' : '> ' %><a
|
||||
href="<%- url_for(category.path) %>"><%= category.name %></a></li>
|
||||
<% }); %>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue