forked from JordanHatch/civictech.club
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (27 loc) · 1.04 KB
/
index.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
---
layout: default
---
<div class="instructions">
<p>A directory of Fediverse users making government and democracy work better.</p>
<p>Add yourself to this page by <a href="https://github.com/JordanHatch/civictech.club" title="GitHub repository for civictech.club">opening a pull request on GitHub</a>.</p>
</div>
{% assign countries = site.people | group_by: "country" %}
{% assign sortedCountries = countries | sort_natural : "name" %}
<ul class="country-list">
{% for country in sortedCountries %}
{% assign countryLabel = site.data.countries[country.name] | default: "Global" %}
<li class="country">
<h2 class="country__name">{{ countryLabel }}</h2>
{% assign people = country.items | sort_natural : "name" %}
<ul class="country__people people-list">
{% for person in people %}
{% include person.html
name=person.name
link=person.link
account=person.account
image=person.image %}
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>