-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathteaching.html
36 lines (29 loc) · 1019 Bytes
/
teaching.html
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
---
layout: default
title: Teaching
permalink: /teaching
id: teaching
order: 8
---
{% assign i18n = site.data.teaching_page %}
<div class="content-wrapper">
<header>
<h1 class="page-title">{{ i18n.title | default: "Teaching" }}</h1>
<p class="page-intro">
{{ i18n.intro }}
</p>
</header>
{% assign courses_by_program = site.data.teaching.courses | group_by: "program" %}
{% for program in courses_by_program %}
<section class="teaching-section">
{% assign title_key = program.name | downcase | append: "_title" %}
<h3 class="teaching-section-title">{{i18n[title_key]}}</h3>
{% assign courses = program.items | sort: "code" %}
<ul class="bare-list courses">
{% for course in courses %}
<li class="course">{% include teaching/course.html course=course %}</li>
{% endfor %}
</ul>
</section>
{% endfor %}
</div>