Skip to content

Commit 74b74c3

Browse files
Added event's address in the map section for post (event) detailed view.
Styled text for address in post.
1 parent aa540aa commit 74b74c3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

_layouts/post.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ <h1 class="post__content-title">{{ page.title }}</h1>
9999
<p class="post__paragraph">{{ page.content }}</p>
100100
<hr class="post__divider">
101101
<h1 class="post__content-title">Event's location</h1>
102+
{% assign host_sponsor_id = page.sponsors | first %}
103+
{% assign host_sponsor = site.sponsors | where:"obj_id", host_sponsor_id | first %}
104+
<p class="post__address-title">{{ host_sponsor.name }}</p>
105+
<p class="post__address">{{ host_sponsor.address }}</p>
102106
<div class="chapters__content row">
103107
<div class="col-12 my-auto">
104108
<div id="chapters__map"></div>

_sass/post.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,18 @@
9696
font-size: 2em;
9797
}
9898

99+
.post__address {
100+
@extend .paragraph;
101+
color: $paragraph-dark;
102+
font-size: 1em;
103+
}
104+
105+
.post__address-title {
106+
@extend .post__address;
107+
font-weight: bold;
108+
margin-bottom: 0.25em;
109+
}
110+
99111
.post__sponsor-col {
100112
padding-left: 10%;
101113
padding-right: 10%;

0 commit comments

Comments
 (0)