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