forked from Starbound-Fr/Starbound-Fr.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (36 loc) · 1.2 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
---
layout: default
---
<div class="home">
<div class="post-list">
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<div id="{{ post.title }}" class="post-cover">
<a href="{{ post.url | prepend: site.baseurl }}" rel="bookmark" title="{{ post.title }}">
<img src="{{ post.cover | default: site.generic_cover }}" class="" alt="{{ post.cover_alt | default: "" }}">
<div class="thumbnail-title">
<h2>{{ post.title }}</h2>
</div>
</a>
</div>
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<div class="pagination">
<div class="pagination-previous">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">
<span>« Page précédente</span>
</a>
{% endif %}
</div>
<div class="pagination-next">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">
<span>Page suivante »</span>
</a>
{% endif %}
</div>
</div>
{% endif %}
</div>