Skip to content

Commit 22cd034

Browse files
authored
Merge pull request #122 from purna135/add_links
Add Live Q&A links to event card
2 parents 1d6f2b2 + be47c33 commit 22cd034

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

data/events.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@
108108
readMoreURL = "https://discourse.pymc.io/t/pymcon-web-series-05-the-bayesian-statistics-toolbox-april-17th-2023-hyosub-kim/11845"
109109
video1Name = "Interview video"
110110
video1SocialLink = "https://www.youtube.com/watch?v=acDdmyJZW-U"
111-
video2Name = "Event video"
111+
video2Name = "Async Talk"
112112
video2SocialLink = "https://youtu.be/ElfToZ9EBpM"
113+
video3Name = "Live Q&A"
114+
video3SocialLink = "https://youtu.be/eIu4mJAYG58"
113115
eventOrder = 5
114116
eventType = "past"
115117
featured = true
@@ -127,8 +129,10 @@
127129
readMoreURL = "https://discourse.pymc.io/t/12131"
128130
video1Name = "Interview video"
129131
video1SocialLink = "https://youtu.be/P3GIrgYwsTI"
130-
video2Name = "Event video"
132+
video2Name = "Async Talk"
131133
video2SocialLink = "https://youtu.be/dbkgpePWePg"
134+
video3Name = "Live Q&A"
135+
video3SocialLink = "https://youtu.be/aUTW4oa36lU"
132136
eventOrder = 6
133137
eventType = "past"
134138
featured = true
@@ -146,8 +150,10 @@
146150
readMoreURL = "https://discourse.pymc.io/t/12274"
147151
video1Name = "Interview video"
148152
video1SocialLink = "https://www.youtube.com/watch?v=xUpthL_x4k8"
149-
video2Name = "Event video"
150-
video2SocialLink = ""
153+
video2Name = "Async Talk"
154+
video2SocialLink = "https://www.youtube.com/watch?v=0B3xbrGHPx0"
155+
video3Name = "Live Q&A"
156+
video3SocialLink = ""
151157
eventOrder = 7
152158
eventType = "upcoming"
153159
featured = true

layouts/_default/events.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,16 @@ <h3>{{ $event.title | markdownify | emojify }}</h3>
7272
</div>
7373

7474
{{ with $event.video1SocialLink }}
75-
<a href="{{ $event.video1SocialLink }}" target="_blank" class="btn event__btn"> Interview Video </a>
75+
<a href="{{ $event.video1SocialLink }}" target="_blank" class="btn event__btn"> {{ $event.video1Name }} </a>
7676
{{ end }}
7777

7878
{{ with $event.video2SocialLink }}
79-
<a href="{{ $event.video2SocialLink }}" target="_blank" class="btn event__btn"> Event Video </a>
80-
{{ end }}
79+
<a href="{{ $event.video2SocialLink }}" target="_blank" class="btn event__btn"> {{ $event.video2Name }} </a>
80+
{{ end }}
81+
82+
{{ with $event.video3SocialLink }}
83+
<a href="{{ $event.video3SocialLink }}" target="_blank" class="btn event__btn"> {{ $event.video3Name }} </a>
84+
{{ end }}
8185

8286
{{ with $event.readMoreURL }}
8387
<a href="{{ $event.readMoreURL }}" target="_blank" class="btn event__btn"> Discourse Post </a>

static/css/events.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@
137137
}
138138

139139
.event__btn {
140-
padding: 0.5rem 1rem;
140+
padding: 0.4rem 0.9rem;
141141
border-radius: 5px;
142-
font-size: 0.85rem;
142+
font-size: 0.8rem;
143143
color: var(--color-white);
144144
text-align: center;
145145
background-color: var(--color-danger);

0 commit comments

Comments
 (0)