-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaps.html
56 lines (56 loc) · 1.7 KB
/
maps.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
---
title: Community Maps
layout: default
---
<style>
:target ~.mapCard {
display:none;
}
{% for map in site.maps -%}
a#{% include renderMapSlug.liquid map=map %}:target ~.{% include renderMapSlug.liquid map=map %},a#{% include renderMapSlug.liquid map=map %}:target ~.{% include renderMapSlug.liquid map=map %} .mapInfo {%- if forloop.last == false %},{%- endif %}
{% endfor -%}
{
display:block;
}
.mapInfo {
display:none;
}
</style>
<main role="main">
<!--- Main -->
<section class="jumbotron text-center">
<div class="container">
<h1 class="jumbotron-heading">Community Maps</h1>
<p class="lead text-muted">All user submitted maps are gathered on this page.</p>
<p>
<a href="#" class="btn btn-primary my-2">All Maps</a>
<a href="{% link mapHelp.md %}" class="btn btn-secondary my-2">How to upload a Map</a>
</p>
</div>
</section>
<!--- Maps -->
<div class="album">
<div class="container">
<div class="row">
{%- for map in site.maps -%}
<a id="{% include renderMapSlug.liquid map=map %}" style="display: none"></a>
{%- endfor -%}
{%- for map in site.maps -%}
{% include renderMapCard.liquid map=map %}
{% assign mod = forloop.index | modulo: 3 %}
{% if mod == 0 %}
<div class="w-100"></div>
{% endif %}
{% if forloop.last == true %}
{% if mod == 1 %}
<div class="col mapCard"></div>
<div class="col mapCard"></div>
{% elsif mod == 2 %}
<div class="col mapCard"></div>
{% endif %}
{% endif %}
{%- endfor -%}
</div>
</div>
</div>
</main>