mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
website: Fix bug causing too few Recent Posts in sidebar
This commit is contained in:
parent
3fe221426e
commit
1d4c9a5720
1 changed files with 3 additions and 3 deletions
|
|
@ -22,14 +22,14 @@
|
|||
}
|
||||
seriesTracker[post.series]++
|
||||
}
|
||||
totalCnt++
|
||||
|
||||
|
||||
if (totalCnt > 10 || seriesTracker[post.series] > 1) {
|
||||
return false
|
||||
}
|
||||
totalCnt++
|
||||
%>
|
||||
<li>
|
||||
<a href="/<%- post.path %>" class="sidebar-link<%- page.title === post.title ? ' current' : '' %>"><%- title %></a>
|
||||
<a href="/<%- post.path %>" class="sidebar-link<%- page.title === post.title || (page.series && page.series === post.series) ? ' current' : '' %>"><%- title %></a>
|
||||
</li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue