-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (53 loc) · 1.33 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
---
layout: default
---
<header class="header">
{% include header-content.html %}
</header>
<div class="list">
{% if site.posts.size == 0 %}
<h2>No post found</h2>
{% else %}
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<div class="list-post">
{% if post.link %}
<a href="{{ post.link }}">
{% else %}
<a href="{{ post.url | relative_url }}">
{% endif %}
<div class="list-post-date">
<time>{{ post.date | date_to_string }}</time>
</div>
<div class="list-post-title">
{{ post.title }}
</div>
{% if post.description %}
<div class="list-post-desc">
{{ post.description }}
</div>
{% endif %}
</a>
</div>
{% endfor %}
{% if paginator.total_pages > 1 %}
<!-- Pagination links -->
<div class="list-pagination">
<span class="list-pagination-previous">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}" class="previous">
 previous
</a>
{% endif %}
</span>
<span class="list-pagination-next">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}" class="next">
next 
</a>
{% endif %}
</span>
</div>
{% endif %}
{% endif %}
</div>