forked from mauroservienti/milestone.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (105 loc) · 3.83 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
layout: page
id: 'home'
---
<div class="home">
<div class="card mb-3">
{% assign first = site.posts[0] %}
{% if first.header_image %}
<img class="img-fluid card-img-top" alt=" {{ first.title }} header image"
src="{{ first.header_image | prepend: site.baseurl }}" />
{% endif %}
<div class="card-body">
<p class="card-text first-post-details">
<small class="first-post-date">
{{ first.date | date_to_rfc822 | date: "%B %-d, %Y" }}
</small>
</p>
<h2 class="card-title">
<a class="muted-link" href="{{ first.url | prepend: site.baseurl }}">{{ first.title }}</a>
</h2>
<hr class="h-splitter" />
<p class="card-text">
{% if first.synopsis %}{{ first.synopsis }}{% else %}{{ first.excerpt }}{% endif %}
</p>
<p class="card-text">
<small class="text-muted">
<a class="card-link" href="{{ first.url | prepend: site.baseurl }}">Continue reading...</a>
</small>
</p>
</div>
</div>
{% assign upcomingevents = site.events | where: 'status', 'upcoming' | sort: 'calendar.start' %}
{% assign len = upcomingevents | size %}
{% if len > 0 %}
{% assign upcomingevent = upcomingevents[0] %}
<div class="card border-none mb-3 upcoming-event">
<div class="card-header">
<span>Upcoming event • <span class="upcoming-event-date">
{% if upcomingevent.calendar.display %}
{{ upcomingevent.calendar.display }}
{% else %}
{% if upcomingevent.calendar.start contains "T" %}
{{ upcomingevent.calendar.start | date_to_rfc822 | date: "%B %-d, %Y - %H:%M" }}
{% else %}
{{ upcomingevent.calendar.start | date_to_rfc822 | date: "%B %-d, %Y" }}
{% endif %}
{% endif %}
</span>
</span>
</div>
<div class="card-body">
<div class="row">
<div class="d-none d-sm-none d-md-block col-md-2">
<img src="img/speak.jpg" class="img-fluid rounded" alt="Speaker">
</div>
<div class="col-12 col-sm-12 col-md-10 upcoming-event-details">
<p>I'll be at <a class="upcoming-event-title"
href="{{ upcomingevent.url | prepend: site.baseurl }}">{{ upcomingevent.title }}</a>, <span
class="upcoming-event-location">{{ upcomingevent.location }}</span>. We'll talk about:
<ul class="upcoming-event-sessions-list">
{% for session in upcomingevent.sessions %}
<li>
<span class="session-title">{{ session.title }}</span>
</li>
{% endfor %}
</ul>
</p>
<p>
<small class="text-muted">
<a href="{{ site.baseurl }}events/">More events...</a>
</small>
</p>
</div>
</div>
</div>
</div>
{% endif %}
<div class="card-columns">
{% for post in site.posts limit:6 offset:1 %}
<div class="card">
<div class="card-header">
<div class="post-details">
<span class="post-date">
{{ post.date | date_to_rfc822 | date: "%B %-d, %Y" }}
</span>
</div>
</div>
<div class="card-body">
<h4 class="card-title">
<a class="muted-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h4>
<hr class="h-splitter" />
<p class="card-text">
{% if post.synopsis %}{{ post.synopsis }}{% else %}{{ post.excerpt }}{% endif %}
</p>
<p class="card-text">
<small class="text-muted">
<a href="{{ post.url | prepend: site.baseurl }}">Continue reading...</a>
</small>
</p>
</div>
</div>
{% endfor %}
</div>
</div>