generated from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteaching.liquid
53 lines (51 loc) · 1.5 KB
/
teaching.liquid
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
---
layout: default
---
{% unless site.data.cv %}
<div class="post">
<header class="post-header">
<h1 class="post-title">
{{ page.title }}
</h1>
{% if page.description %}
<p class="post-description">{{ page.description }}</p>
{% endif %}
</header>
<article>
<div class="teaching">
{% for entry in site.data.teaching %}
<a class="anchor" id="{{ entry.title }}"></a>
<div class="card mt-3 p-3">
<h3 class="card-title font-weight-medium">{{ entry.title }}</h3>
<div>
{% if entry.type == 'list' %}
{% include cv/list.liquid %}
{% elsif entry.type == 'map' %}
{% include cv/map.liquid %}
{% elsif entry.type == 'nested_list' %}
{% include cv/nested_list.liquid %}
{% elsif entry.type == 'time_table' %}
{% include cv/time_table.liquid %}
{% elsif entry.type == 'list_groups' %}
{% include cv/list_groups.liquid %}
{% else %}
{{ entry.contents }}
{% endif %}
</div>
</div>
{% endfor %}
</div>
</article>
</div>
{% else %}
<div class="post">
<header class="post-header">
<h1 class="post-title">
{{ page.title }}
</h1>
{% if page.description %}
<p class="post-description">{{ page.description }}</p>
{% endif %}
</header>
</div>
{% endunless %}