forked from intsystems/intsystems.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcourse.html
executable file
·52 lines (44 loc) · 1.7 KB
/
course.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
layout: default
---
{% if page.type == "bachelor" %}
<meta name="description" content="{% t metatags.bachelor_course %}, {% t courses.name.{{ page.id | split: "/" | last }} %}" />
{% else %}
<meta name="description" content="{% t metatags.master_course %}, {% t courses.name.{{ page.id | split: "/" | last }} %}" />
{% endif %}
<div class="no_toc_section">
<h3 id="{% t courses.name.{{ page.id | split: "/" | last }} %}" class="title">{% t courses.name.{{ page.id | split: "/" | last }} %}</h3>
</div>
{% if page.avatar %}
<img width="300" src="/images/course/{{ page.avatar }}">
{% endif %}
{% if page.site %}
<i class="fa fa-university" aria-hidden="true"></i> <a href="{{ page.site }}">{% t course.website %}</a> <br>
{% endif %}
<hr>
{{ content }}
{% if page.lecturers %}
<div class="no_toc_section">
<h3 id="{% t course.teachers %}" class="title">{% t course.teachers %}</h3>
</div>
<div class="list people">
{% assign lecturers = page.lecturers | split: "," %}
{% for lecturer in lecturers %}
{% for profile in site.people %}
{% if profile.url contains lecturer %}
<div class="list-item-people">
<p class="list-post-title">
{% if profile.avatar %}
<a href="{{ site.baseurl }}{{ profile.url }}"><img class="profile-thumbnail" src="/images/people/{{profile.avatar}}"></a>
{% else %}
<a href="{{ site.baseurl }}{{ profile.url }}"><img class="profile-thumbnail" src="/images/people/default.jpg"></a>
{% endif %}
<a class="name" href="{{ site.baseurl }}{{ profile.url }}">{% t peoples.name.{{ profile.id | split: "/" | last }} %}</a>
</p>
</div>
{% endif %}
{% endfor %}
{% endfor %}
</div>
<hr>
{% endif %}