Daily Stormer Search
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
1.0 KiB

<%- include('_header') -%>
<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<%- include('_search') %>
<%
// break a list into 3 even lists
function thirds(list) {
if (list.length <= 50) {
return [list, [], []]
}
const boundary = Math.round(list.length / 3)
a = boundary
b = boundary * 2
c = boundary * 3
return [list.slice(0, a), list.slice(a, b), list.slice(b, c)]
}
%>
<section id="tag-index" class="clean" style="margin-top: 5%" >
<div class="container">
<div class="row">
<% const parts = thirds(tags) %>
<% parts.forEach((ts) => { %>
<div class="four columns" >
<% ts.forEach((t) => { %>
<h6><a href="/tag/<%- t.name.replace(/\s+/g, '-') %>"><%- t.name %></a> (<span class="count"><%- t.c %></span>)</h6>
<% }) %>
</div>
<% }) %>
</div>
</div>
</section>
<%- include('_pagination') %>
<%- include('_footer') -%>