-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathhome.html
57 lines (57 loc) · 1.91 KB
/
home.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
---
layout: default
---
<div class="hero">
<div class="fixed-width">
<a class="site-title" href="{{ site.baseurl }}/">
<img class="logo" src="{{ '/images/logo-text-white.png' | prepend: site.baseurl }}" alt="Student Robotics" />
</a>
{% include navigation.html class="site-navigation home-navigation" %}
</div>
<div class="hero-container hero-homepage">
<div class="fixed-width">
<div class="hero-text">
<h1>An annual robotics competition for young people aged 16-19</h1>
<h2>Inspiring the next generation of engineers</h2>
</div>
</div>
</div>
</div>
<div class="panel panel-thin latest-content">
<div class="fixed-width">
<div class="content">
{% assign latest_post = site.posts.first %}
<h4>Latest Post</h4>
<a href="{{ latest_post.url | prepend: site.baseurl }}">{{latest_post.title }}</a>
<div class="content-details">
{{ latest_post.date | date: "%e %B, %Y" }}
</div>
</div>
{% if site.show_competition_status %}
<div class="content">
<h4>Competition Status</h4>
<a href="https://studentrobotics.org/comp/league">Leaderboard</a>
<div class="content-details">
after the Competition
</div>
</div>
{% endif %}
<div class="content">
{% assign next_event = site.events | where_exp: "event", "event.date > site.time"
| where_exp: "event", "event.cancelled != true" | first %}
<h4>Next Event</h4>
{% if next_event %}
<a href="{{ next_event.url | prepend: site.baseurl }}">{{ next_event.title }}</a>
<div class="content-details">
{{ next_event.date | date: "%e %B, %Y" }}
</div>
{% else %}
No upcoming events
<br/>
<a class="content-details" href="{{ '/events' | prepend: site.baseurl }}">View previous</a>
{% endif %}
</div>
</div>
</div>
{{ content }}
{% include footer.html %}