-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
162 lines (106 loc) · 3.73 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
layout:
title:
---
{% include head.html %}
{% include title.html %}
<br>
<br>
<div class = "content">
<!-- newest blogpost -->
{% for post in site.posts %}
{% if post.categories contains 'blog'%}
{% if forloop.index < 2 %}
<h1><a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title | markdownify }}</a></h1>
<h5 style = "text-align: center; margin-bottom: 2em;"> <i>by</i> <b>{{ post.author}}</b><i>, {{ post.date | date_to_long_string }}</i> </h5>
<div class = "teaser"> {{ post.teaser | markdownify }} </div>
{% include continue.html %}
{% endif %}
{% endif %}
{% endfor %}
{% include sep %}
<!-- about myself -->
<!-- about myself element -->
{% for page in site.pages %}
{% if page.categories contains 'about'%}
<p class = "two-col"> {{ page.teaser }} </p>
<a class = "continue" href="{{ BASE_PATH }}{{ page.url }}"> Read more about myself! </a><br>
{% endif %}
{% endfor %}
{% include sep %}
</div>
<!-- bloglist and research -->
<div class = "indexcontent">
<!-- Blog preview on Index Site -->
<table>
<tr>
<td>
<!-- <div class = "leftcontainer"> -->
<h5><a href = "{{ BASE_PATH}}/blog/"><i>more from the blog:</i></a></h5>
{% for post in site.posts %}
{% if post.categories contains 'blog'%}
{% if forloop.index == 2 %}
<h2><a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title | markdownify }}</a></h2>
<h5> <i>by</i> <b>{{ post.author}}</b><i>, {{ post.date | date_to_long_string }}</i> </h5>
{{ post.teaser }}
{% if post.content contains "<!-- more -->" %}
{{ post.content| split:"<!-- more -->" | first | markdownify % }}
{% include continue.html %}
{% else %}
{{ post.content | markdownify | truncatewords:20 | remove: '<ul>' | remove: '<li>' | remove: '</li>' | remove: '</ul>' }}
{% include continue.html %}
{% endif %}
{% elsif forloop.index > 2 and forloop.index < 8 %}
<h3><a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title | markdownify }}</a></h3>
<h5> <i>by</i> <b>{{ post.author}}</b><i>, {{ post.date | date_to_long_string }}</i> </h5>
{% endif %}
{% endif %}
{% endfor %}
</td>
<td style = "width:30px"> </td>
<!-- <div class = "rightcontainer"> -->
<td>
<h5><a href = "{{ BASE_PATH }}/research/"><i>about my research:</i></a></h5>
{% for page in site.pages %}
{% if page.categories contains 'research'%}
<h2><a href="{{ BASE_PATH }}{{ page.url }}">{{ page.title | markdownify }}</a></h2>
{{ page.teaser | markdownify }}
<h5>{{ page.partners | prepend: '*Collaborators:* ' | markdownify}}</h5>
{% endif %}
{% endfor %}
</td>
</tr>
</table>
</div>
<!-- Publication list overview -->
{% include sep %}
<div class = "indexcontent">
<h2><a href = "{{ BASE_PATH }}publications/">Selected publications</a></h2>
<div class = "publist">
<ul>
{% for page in site.pages %}
{% if page.categories contains 'article' and page.priority contains 'A'%}
<li>
<a href= "{{ BASE_PATH }}{{page.url}}">{{ page.authors }} ({{ page.date | date: "%Y"}}), {{ page.title }}, <i>{{ page.journal }}</i>, {{page.volume}}:{{ page.pages }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% include sep %}
<div class = "content">
<!-- quote of the month element -->
{% include quote.html %}
</div>
<!-- footer -->
<div class = "up" >
<a rel = "prev" href="{{ site.url }}/sitemap.html"> <span> ˆ </span></a>
</div>
<div class = "turn" style = " right: 0px" >
<a rel = "next" href="{{ site.url }}/research/"> <span> › </span></a>
</div>
<div class = "turn" style = " left: 0px" >
<a rel = "prev" href="{{ site.url }}/blog/"> <span> ‹ </span></a>
</div>
{% include footer.html%}