-
Notifications
You must be signed in to change notification settings - Fork 92
/
index.html
38 lines (35 loc) · 1015 Bytes
/
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
---
layout: default
---
{% assign has_post = false %}
{% for post in site.posts %}
{% if post.private == true %}
{% continue %}
{% endif %}
<div class="post-card">
<a class="title" href="{{site.baseurl}}{{ post.url }}">
{{ post.title }}
</a>
<div class="details">
<b>{{ post.date | date: "%d %B %Y" }}</b>
<br>
{% if post.tags %}
<b>[</b>
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a>{% if forloop.last == false %},{% endif %}
{% endfor %}
<b>]</b>
{% endif %}
</div>
<div class="subtitle">
{{ post.subtitle }}
</div>
</div>
{% if forloop.last == false %}
<hr>
{% endif %}
{% assign has_post = true %}
{% endfor %}
{% if has_post == false %}
<div class="no-post">I've lost the ink pot. Check back later...</div>
{% endif %}