pref: optimize multilevel classification display of post

This commit is contained in:
XPoet 2020-09-02 17:34:08 +08:00
parent b16077d7ad
commit 4f6856db70
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>