mirror of
https://github.com/typicode/json-server.git
synced 2025-07-25 19:22:57 +08:00
fix: homepage
This commit is contained in:
@ -31,7 +31,7 @@
|
||||
<a href="<%= name %>">/<%= name %></a>
|
||||
<span class="text-gray-500">
|
||||
<% if (Array.isArray(it.data[name])) { %>
|
||||
- <%= it.data[name].length %> items</span>
|
||||
- <%= it.data[name].length %> <%= it.data[name].length > 1 ? 'items' : 'item' %></span>
|
||||
<% } %>
|
||||
</div>
|
||||
<% }) %>
|
||||
|
Reference in New Issue
Block a user