Skip to content

Commit a479602

Browse files
committed
Update prompts with link to discord
also removes separate discussion template Signed-off-by: Jason Lowe-Power <[email protected]>
1 parent 7b4da33 commit a479602

File tree

4 files changed

+18
-31
lines changed

4 files changed

+18
-31
lines changed

_includes/discussion.html

-30
This file was deleted.

_includes/prompt.html

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11

22
<div class="prompt">
33

4-
<h3> Discussion Prompt </h3>
4+
<h3> Discussion </h3>
55

66
{{ include.content }}
77

8+
{% if page.discussion %}
9+
10+
<p>
11+
<a href="https://discord.com/channels/791087361273757726/{{ page.discussion }}/" target="_blank"><i class="fab fa-discord"></i> Discuss in Discord! <i class="fas fa-external-link-alt"></i></a>
12+
</p>
13+
14+
{% else %}
15+
16+
<p>
17+
<a href="https://discord.com/channels/791087361273757726/" target="_blank"><i class="fab fa-discord"></i> Discuss in Discord! <i class="fas fa-external-link-alt"></i></a>
18+
</p>
19+
{% endif %}
20+
821
</div>

_layouts/course_page.html

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<div class="content p-md-2">
1010
<h1> {{ page.title }} </h1>
1111
{{ content }}
12+
{% if page.discussion %} {% include prompt.html content="<p>General discussion</p>" %} {% endif %}
1213
{% include next_in_module.html %}
1314
{% if prev or next %}<hr />{% endif %}
1415
<div class="row">

_sass/_custom.scss

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ body {
2828
margin-top: 0;
2929
margin-bottom: 10px;
3030
}
31+
a:hover {
32+
color: white;
33+
}
3134
}
3235

3336
.reading {

0 commit comments

Comments
 (0)