forked from govhackaustralia/govhackaustralia.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocations.html
32 lines (30 loc) · 1.15 KB
/
locations.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: bootstrap
title: Locations
---
<!-- Main Content -->
<section id="portfolio">
<div class="container">
<!--<div class="row header-row">
<div class="col-lg-12 text-center">
<h2 class="section-heading" id="prizes">Jurisdictions</h2>
</div>
</div>-->
<div class="row locations-row">
{% for jurisdiction in site.jurisdictions %}
{% assign location_ids = "" %}
{% for location in site.locations %}
{% if location.jurisdiction == jurisdiction.gid %}
{% assign location_ids = location_ids | append: location.gid %}
{% assign location_ids = location_ids | append: "," %}
{% endif %}
{% endfor %}
{% unless location_ids == "" %}
<h2><a href="{{ jurisdiction.url }}">{{ jurisdiction.name }}</a></h2>
{% assign location_ids_list = location_ids | lstrip | split: "," %}
{% include location_cards.bs.html location_ids=location_ids_list %}
{% endunless %}
{% endfor %}
</div>
</div>
</section>