-
Notifications
You must be signed in to change notification settings - Fork 8
/
beers.html
66 lines (62 loc) · 1.99 KB
/
beers.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
layout: default
---
<div class="banner">
<h1 class="banner-head">I have had {{ site.data.beers | size }} different beers</h1>
</div>
<div class="l-content information">
{% assign title = site.data.beers %}
<div class="pure-u-1" id="beers">
<input class="search" placeholder="Filter">
<table class="pure-table pure-table-striped" style="width: 100%;">
<thead>
<tr>
<th class="sort" data-sort="beer">Beer</th>
<th class="sort" data-sort="abv" style="min-width: 2.7em;">ABV</th>
<th class="sort" data-sort="ibu" style="min-width: 2.7em;">IBU</th>
<th class="sort" data-sort="style" style="min-width: 2.7em;">Style</th>
<th class="sort" data-sort="avg_rating" style="min-width: 2.7em;">Avg rating</th>
<th class="sort" data-sort="checkins" style="min-width: 5.1em;">Checkins</th>
<th class="sort" data-sort="first_checkins" style="min-width: 5.1em;">First checkin</th>
<th class="sort" data-sort="brewery">Brewery</th>
</tr>
</thead>
<tbody class="list">
{% for beer in site.data.beers %}
<tr>
<td>
<a class="external beer" href="https://untappd.com/beer/{{ beer.id }}" target="_blank" rel="noopener noreferrer">{{ beer.name }}</a>
</td>
<td class="abv">
{{ beer.abv }}
</td>
<td class="ibu">
{{ beer.ibu }}
</td>
<td class="style">
{{ beer.type }}
</td>
<td class="avg_rating">
{{ beer.avg_rating }}
</td>
<td class="checkins">
{{ beer.checkins }}
</td>
<td class="first_checkins">
{{ beer.checkin_at }}
</td>
<td>
<a class="external brewery" href="https://untappd.com/brewery/{{ beer.brewery_id }}" target="_blank" rel="noopener noreferrer">{{ beer.brewery }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<script>
let options = {
valueNames: [ "beer", "abv", "ibu", "style", "avg_rating", "checkins", "first_checkins", "brewery" ]
};
let beers = new List("beers", options);
</script>