-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
83 lines (75 loc) · 2.17 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
---
show_header: true
permalink: /
---
{% assign sorted_hacks = site.hacks | where:"upcoming",true | sort:"date" | reverse %}
{% assign next_hack = sorted_hacks | first %}
{% assign start_time = next_hack.date | slice:0,10 | append:"T09:30Z" %}
<p class="lead">
An online event where you can meet friends and work on something new
</p>
<section class="map">
<div>
<h2>Live Map</h2>
{% include livemap.html %}
</div>
</section>
<section class="📅">
<div>
<h2>Next event</h2>
{% if next_hack %}
<p>
<time class="⏰" datetime="{{start_time}}">
{{ start_time | date_to_long_string }}
<span>
<script>
document.currentScript.replaceWith(
document.createTextNode(
new Intl.DateTimeFormat('default', {
hour: 'numeric',
minute: 'numeric',
timeZoneName: 'long'
})
.format(new Date("{{start_time}}"))
)
)
</script>
<noscript>
{{ start_time | date: "%k:%M%P %Z" }}
</noscript>
</span>
</time>
</p>
{% else %}
<p class="☹️">
There's nothing lined up! ☹️</p>
{% endif %}
</div>
<p class="🖱️">
<a href="{{ site.url }}/calendar.ics" data-emoji="📅">Add to your calendar</a>
</p>
</section>
<p class="🖱️">
<a href="{{ site.url }}/join" data-emoji="👉">Join us on Discord</a>
</p>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "{{ site.title }}",
"description": "{{ site.description | split:"." | first }}",
{% if next_hack %}
"startDate": "{{start_time}}",
{% endif %}
"eventStatus": "https://schema.org/EventScheduled",
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"location": {
"@type":"VirtualLocation",
"url": "{{ site.discord_invite_url }}"
},
"image": [
"https://remotehack.space/images/RH-social-square.jpg",
"https://remotehack.space/images/RH-social-landscape.jpg"
]
}
</script>