forked from heiswayi/the-plain
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
47 lines (37 loc) · 1.12 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
---
layout: default
---
<section>
Hello.
This is my academic website. Here I post my academic activities (my researches
and talks), some of my projects and a blog where I publish more detailed posts.
<div class="divider"></div>
</section>
<section>
<div class="center">
<h1 class="title">Recent Activites</h1>
</div>
<div class="divider"></div>
{% assign sorted = ((site.documents | sort: date) | reverse) %}
{% assign recent_activities = "" | split: "/" %}
{% for post in sorted limit:5 %}
{% assign recent_activities = recent_activities | push: post %}
{% endfor %}
{% assign recent_activities = (recent_activities | group_by: "type") %}
{% for group in recent_activities %}
{% assign anitem = group.items | first %}
<h3 class="code" style="text-transform: capitalize;">{{ anitem.type }}</h3>
{% for item in group.items %}
<ul>
<li>
<div class="title">
<a href="{{ item.url | prepend: site.baseurl | prepend: site.url }}">
<img src="{{ item.imageurl }}" alt="" style="width: 100%;">
{{ item.title }}
</a>
</div>
</li>
</ul>
{% endfor %}
{% endfor %}
</section>