This repository has been archived by the owner on Jan 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
60 lines (56 loc) · 1.93 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
---
layout: default
title: Home
---
<div class="home">
<div class="intro_home">
{% capture my_include %}{% include intro.md %}{% endcapture %}
{{ my_include | markdownify }}
</div>
</div>
<hr />
<div class="home">
<div class="post-list four columns">
{% assign posts = site.talks | sort: 'date' | reverse %}
{% for post in posts limit:20 %}
<article class="post_card post">
<header class="post_header">
{% assign posttype = post.id | split:"/" %}
{% assign posticon = posttype[1] | capitalize %}
{% assign i = site.data.icons | where:"name",{{posticon}} | first %}
<div class="index_title_light">
<i class="fa fa-{{i.icon}}"></i>
<a href="/{{posttype[1]}}/#{{post.id | slugify }}">{{ post.title}}</a>
</div>
<time class="post_date">{{ post.date | date: "%d %B %Y, %A" }}</time>
</header>
</article>
{% endfor %}
</div>
<div class="post-list eight columns">
{% for post in site.posts limit:10 %}
<article class="post_card post">
<header class="post_header">
<div class="post_title">
{% assign cat = post.categories | first %}
{% assign i = site.data.icons | where:"name",{{cat}} | first %}
<a href="/news/#{{cat}}"><i class="fa fa-{{i.icon}} fa-lg"></i></a>
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title}}</a>
<a class="readmore" href="{{ post.url | prepend: site.baseurl }}"> » </a>
</div>
<time class="post_date">{{ post.date | date: "%d %B %Y, %A" }}</time>
</header>
<div class="post_excerpt">
<p>
{% if post.description %}
{{ post.description}}
{% else %}
{{ post.excerpt }}
{% endif %}
</p>
</div>
</article>
{% endfor %}
<div class="pagination older-post"><a href="/news"><data data-icon="ei-arrow-right"></data> Archive </a></div>
</div>
</div>