-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
54 lines (37 loc) · 1.45 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
---
layout: default
---
<div class="posts">
{% for post in site.posts %}
<article class="post" style="margin-top: 2rem">
<h2 class="post-title">
<a href="{{ site.baseurl }}{{ post.url }}" style="color: inherit">
{{ post.title }}
</a>
</h2>
<div class="post-excerpt">
{{ post.excerpt | truncatewords: 42 }}
</div>
<div class="post-metadata">
{% unless post.language or post.language == "english" %}
<img src="{{ site.baseurl }}/assets/img/flags/GB.png" style="vertical-align: middle">
{% elsif post.language == "french" %}
<img src="{{ site.baseurl }}/assets/img/flags/FR.png" style="vertical-align: middle">
{% endunless %}
· <time datetime="{{ post.date | date_to_xmlschema }}">
<i>{{ post.date | date_to_long_string: "ordinal" }}</i>
</time>
· by
{%- assign author = site.authors | where: "name": post.author | first -%}
{% if author.handle %}
<a href="https://github.com/{{ author.handle }}">
<img src="https://raw.githubusercontent.com/primer/octicons/master/icons/mark-github-16.svg">
</a>
{% endif %}
<a href="{{ site.baseurl }}/authors/{{ author.slug }}">
{{ author.name }}
</a>
</div>
</article>
{% endfor %}
</div>