-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (105 loc) · 3.22 KB
/
index.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
layout: default
title: Home
---
<!-- Open source projects -->
<h2 id="open-source-projects-ref">Open Source Projects</h2>
<table class="projects">
{% for project in site.data.projects %}
<tr>
<td class="td1">
{% if project.url %}
<a href="{{ project.url }}">{{ project.name }}</a>
{% else %}
{{ project.name }}
{% endif %}
</td>
<td>
{{ project.description }}<br/>
<a class="openSourceLink" href="{{ project.github }}"><i class="fab fa-github"></i> Github</a>
</td>
</tr>
{% endfor %}
</table>
<!-- Publications -->
<h2>Publications</h2>
{% for publication in site.data.publications %}
{% capture this_year %}{{ publication.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ publication.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<h3 id="{{ this_year }}-ref">{{this_year}}</h3>
<ul>
{% endif %}
<li><a href="{{ publication.url }}">{{ publication.title }}</a></li>
{% if publication.description %} {{publication.description}} {% endif %}
{% if forloop.last %}
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
<h3 id="{{ next_year }}-ref">{{next_year}}</h3>
<ul>
{% endif %}
{% endif %}
{% endfor %}
<!-- Talks -->
<h2>Talks</h2>
{% for talk in site.data.talks %}
{% capture this_year %}{{ talk.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<h3 id="{{ this_year }}-ref">{{this_year}}</h3>
<ul>
{% endif %}
<li><a href="{{ talk.url }}">{{ talk.title }}</a></li>
{% if talk.description %} {{talk.description}} {% endif %}
{% if forloop.last %}
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
<h3 id="{{ next_year }}-ref">{{next_year}}</h3>
<ul>
{% endif %}
{% endif %}
{% endfor %}
<!-- Articles -->
{% if paginator.posts %}
<h2>Articles</h2>
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<h3 id="{{ this_year }}-ref">{{this_year}}</h3>
<ul>
{% endif %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
<div>{{ post.excerpt }}</div>
{% if forloop.last %}
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
<h3 id="{{ next_year }}-ref">{{next_year}}</h3>
<ul>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<!-- Activate pagination when there are enough posts -->
<!-- <div class="pagination">
{% if paginator.next_page %}
<a class="pagination-item older" href="/page{{paginator.next_page}}">Older</a>
{% else %}
<span class="pagination-item older">Older</span>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="pagination-item newer" href="/">Newer</a>
{% else %}
<a class="pagination-item newer" href="/page{{paginator.previous_page}}">Newer</a>
{% endif %}
{% else %}
<span class="pagination-item newer">Newer</span>
{% endif %}
</div> -->