-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (77 loc) · 3.69 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
layout: landing-page
id: home
permalink: /
---
{% capture now-unix %}{{ 'now' | date: '%s' }}{% endcapture %}
<!-- Main -->
<article id="main">
<!-- About -->
<header class="special container">
<h2><strong>Medieval Archery Society</strong> (MAS)</h2>
<p>The <strong>Medieval Archery Society</strong> (MAS) is a group of like minded people who primarily portray an English mercenary company (Free Company) in France, circa 1365, based in Sydney, Australia. The main focus of the group is archery, but we have members who have skills in medieval cooking, leatherwork, spinning, blacksmithing, fletching and foot combat. The group is also interested in archery from other periods of history, and other cultures. The group attends medieval festivals, often running archery for the public.</p>
<p>
<ul class="buttons">
<li><a href="/about/" class="button">Learn more About Us</a></li>
</ul>
</p>
</header>
<!-- Events -->
<section class="wrapper style3 container special">
<header class="major">
<h2>Our Upcoming Events</h2>
</header>
<div class="row">
{% assign sorted_events = (site.data.events | sort) %}
{% assign event_count = 0 %}
{% for event in sorted_events %}
{% capture event-unix %}{{event[1].end-date | date: '%s' }}{% endcapture %}
{% if now-unix >= event-unix %}
{% continue %}
{% elsif event_count >= 2 %}
{% continue %}
{% else %}
{% assign event_count = event_count | plus:1 %}
{% endif %}
<div class="6u">
<section>
<a href="/events/" class="image featured"><img src="/assets/images/events/{{event[1].image}}" alt="{{event[1].title}}" /></a>
<header>
<h3><strong>{{event[1].name}}</strong></h3>
<p>{{event[1].date}} | <a href="{{event[1].locationlink}}" target="_blank">{{event[1].location}}</a></p>
</header>
<p>{{event[1].short-desc}}</p>
{% if event[1].website %}
<footer>
<p>For more information, please <a href="{{event[1].website}}" target="_blank">visit the event's website</a>.</p>
</footer>
{% endif %}
</section>
</div>
{% endfor %}
</div>
<footer class="major">
<ul class="buttons">
<li><a href="/events/" class="button">More Events</a></li>
</ul>
</footer>
</section>
</article>
<section id="pre-cta">
</section>
<!-- CTA -->
<section id="cta">
<figure></figure>
<figure></figure>
<figure></figure>
<div class="inner">
<header>
<strong><h2>View Our Gallery</h2></strong>
</header>
<footer>
<ul class="buttons">
<li><a href="/gallery/" class="button">More Images</a></li>
</ul>
</footer>
</div>
</section>