-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.njk
24 lines (24 loc) · 900 Bytes
/
index.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
layout: layout.njk
---
<table class="leaderboard leaderboard-list">
<caption>Choose a category</caption>
<thead data-sr-only>
<tr>
<th>Category</th>
<th>Site Count</th>
<th>Last Run Date</th>
</tr>
</thead>
<tbody>
{%- for key, category in sites %}
{%- if not category.hide %}
<tr>
<td><a href="{{ ('/' + (category.name or key) | lower | slug + '/') | url }}">{{ category.description or category.name or key }}</a></td>
<td><span class="count">×{{ category.urls.length }}<span class="leaderboard-hide-sm"> site{% if category.urls.length != 1 %}s{% endif %}</span></span></td>
<td class="leaderboard-hide-sm">{% if lastruns[key].timestamp %}<span class="small"><timestamp-ago timestamp="{{ lastruns[key].timestamp }}">{{ lastruns[key].timestamp | displayDate | safe }}</timestamp-ago></span>{% endif %}</td>
</tr>
{%- endif %}
{%- endfor %}
</tbody>
</table>