-
Notifications
You must be signed in to change notification settings - Fork 1
/
people.html
51 lines (43 loc) · 1.57 KB
/
people.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
---
layout: page-header
id: people
title: Project Members
---
<section id="features" class="section">
<!-- People Page for Large Screen with 4 person per row. -->
<div class="container hide-on-med-and-down">
{% assign rows = site.data.people.size | divided_by: 4.0 | ceil %}
{% for i in (1..rows) %}
{% assign offset = forloop.index0 | times: 4 %}
<div class="row">
{% for member in site.data.people limit:4 offset:offset %}
{% include /people_card.html %}
{% endfor %}
</div>
{% endfor %}
</div>
<!-- People Page for Medium Screen with 3 person per row. -->
<div class="container hide-on-large-only hide-on-small-only">
{% assign rows = site.data.people.size | divided_by: 3.0 | ceil %}
{% for i in (1..rows) %}
{% assign offset = forloop.index0 | times: 3 %}
<div class="row">
{% for member in site.data.people limit:3 offset:offset %}
{% include /people_card.html %}
{% endfor %}
</div>
{% endfor %}
</div>
<!-- People Page for Small Screen with 1 person per row. -->
<div class="container hide-on-med-and-up">
{% assign rows = site.data.people.size | divided_by: 1.0 | ceil %}
{% for i in (1..rows) %}
{% assign offset = forloop.index0 | times: 1 %}
<div class="row">
{% for member in site.data.people limit:1 offset:offset %}
{% include /people_card.html %}
{% endfor %}
</div>
{% endfor %}
</div>
</section>