-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschedule.njk
85 lines (84 loc) · 3.1 KB
/
schedule.njk
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
---
title: Schedule - Rust Stuco
name: Schedule
layout: layouts/page.njk
eleventyNavigation:
key: Schedule
order: 4
---
<table style="width: min(200vw, 75vw); margin-left: 50%; transform: translateX(-50%);">
<thead>
<tr class="font-semibold italic font-display text-lg">
<th>Topics</th>
<th>Extra Material</th>
<th>Slides</th>
<th>Homework</th>
</tr>
</thead>
<tbody>
{% for entry in site.schedule %}
<tr>
<td>
<h2 class="mt-0 mb-2 italic font-bold">{{ entry.title }}</h2>
<a href="#/" id="toggleButton{{loop.index}}">Details ▼</a>
<ul id="toggleDiv{{loop.index}}" class="hidden">
{% if entry.details_released %}
{% for topic in entry.agenda %}
<li>{{ topic.title }}</li>
<ul>
{% for subtopic in topic.sub %}
<li>{{ subtopic.title }}</li>
{% endfor %}
</ul>
{% endfor %}
{% else %}
<li><i>Details TBA</i></li>
{% endif %}
</ul>
</td>
<td>
{% if entry.details_released %}
<ul>
{% for topic in entry.extras %}
{% if topic.link %}
<li><a href="{{ topic.link }}">{{ topic.title }}</a></li>
{% else %}
<li>{{ topic.title }}</li>
{% endif %}
<ul>
{% for subtopic in topic.sub %}
{% if subtopic.link %}
<li><a href="{{ subtopic.link }}">{{ subtopic.title }}</a></li>
{% else %}
<li>{{ subtopic.title }}</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
{% else %}
—
</ul>
{% endif %}
</td>
<td>
{% if entry.slides_released %}
<ul>
<li><nobr><a href="{{ entry.slides_light_html }}">light</a><a href="{{ entry.slides_light_pdf }}"> (pdf)</a></nobr></li>
<li><nobr><a href="{{ entry.slides_dark_html }}">dark</a><a href="{{ entry.slides_dark_pdf }}"> (pdf)</a></nobr></li>
</ul>
{% else %}
—
{% endif %}
</td>
<td>
{% if entry.hw_released %}
<ul>
<li><a href="{{ entry.hw_handout }}">handout</a></li>
<li><a href="{{ entry.hw_writeup }}">writeup</a></li>
</ul>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>