A short explanation. . .
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
{% assign sorted_people = people | sort: "birthday"%}
<html>
<head>
<title>Birthdays</title>
{{ helpers.bootstrap_3 }}
<style>
@page { margin: 0.5in; size: US-Letter; }
body { font-family: "Lora", "Lora", Helvetica, Arial, Verdana, sans-serif; }
</style>
</head>
<body>
<h1>
{{ filter.name }}
</h1>
<table class="table table-condensed phone_numbers">
<thead>
<tr>
<th>Name</th>
<th>Birthdate</th>
<th>Age</th>
<th>Email</th>
<th>Address</th>
</tr>
</thead>
<tbody>
{% for person in sorted_people %}
<tr>
<td>{{ person.name }}</td>
<td>
{{ person.birthdate | date: "%b %d"}}
</td>
<td>
{{ person.age}}
</td>
<td>
{{ person.primary_email}}
</td>
<td>
{% for address in person.addresses %}
{{ address.postal_address }}
{% endfor %}
<td>
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>