Skip to content

Commit bb56352

Browse files
Merge pull request #630 from srobo/events-links
Events links
2 parents d9c9013 + f18efc5 commit bb56352

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

_layouts/event.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44
<div class="header-card">
55
<div class="fixed-width">
66
<h1>{{ page.title }}</h1>
7+
<a title="Add to calendar" class="header-link-icon" href="webcal://{{ '/events.ics' | absolute_url | remove_first: 'https://' | remove_first: 'http://' }}"><i class="fa-solid fa-calendar"></i></a>
78
</div>
89
</div>
910
<div class="main">
1011
<div class="fixed-width">
1112
<div class="column l-4-12">
13+
<div class="card thin-card">
14+
<ul class="detail-list">
15+
<li><i class="fa-solid fa-arrow-left" aria-hidden="true"></i> <a href="{{ '/events' | prepend: site.baseurl }}">View all events</a></li>
16+
</ul>
17+
</div>
1218
<div class="card thin-card">
1319
<ul class="detail-list">
1420
<li class="event-date">

_sass/common.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@
3333
font-family: $hero-font-family;
3434
color: $sr-white;
3535
margin-bottom: 0;
36+
margin-right: auto;
37+
}
38+
39+
.fixed-width {
40+
display: flex;
41+
align-items: center;
42+
}
43+
44+
a.header-link-icon {
45+
font-size: $beta;
46+
color: $sr-white;
3647
}
3748
}
3849

events.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<div class="header-card">
77
<div class="fixed-width">
88
<h1>Events</h1>
9+
<a title="Add to calendar" class="header-link-icon" href="webcal://{{ '/events.ics' | absolute_url | remove_first: 'https://' | remove_first: 'http://' }}"><i class="fa-solid fa-calendar"></i></a>
910
</div>
1011
</div>
1112
<div class="main">

index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ <h1><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h1>
238238
</div>
239239
</div>
240240
{% endfor %}
241-
<a class="button button-expand" href="{{ '/blog' | prepend: site.baseurl }}">View more posts</a>
242241
</div>
243242
<div class="column m-4-12">
244243
<h2>Upcoming events</h2>
@@ -270,10 +269,17 @@ <h2>Upcoming events</h2>
270269
<p>
271270
There are no upcoming events.
272271
<br>
273-
<a class="event-details" href="{{ '/events' | prepend: site.baseurl }}">View previous</a>
274272
</p>
275273
{% endif %}
276274
</div>
277275
</div>
276+
<div class="row">
277+
<div class="column m-8-12">
278+
<a class="button button-expand" href="{{ '/blog' | prepend: site.baseurl }}">View more posts</a>
279+
</div>
280+
<div class="column m-4-12">
281+
<a class="button button-expand" href="{{ '/events' | prepend: site.baseurl }}">View previous events</a>
282+
</div>
283+
</div>
278284
</div>
279285
</div>

0 commit comments

Comments
 (0)