-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (40 loc) · 1.38 KB
/
index.html
File metadata and controls
45 lines (40 loc) · 1.38 KB
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
---
layout: home-page
---
{% include calculate_relative_base.html %}
<ol class="post-card-box clearfix">
{% for post in paginator.posts %}
{% assign card_img = post.img | default: site.default_post_image %}
{% include remove_double_slash.html %}
<li>
<div class="post-card">
<a href="{{ post_url }}" title="{{ post.title }}" class="post-card-image" style="background: url('{{ relativebase }}assets/img/{{ card_img }}') center no-repeat; background-size: cover;">
</a>
<div class="post-card-body">
<p class="post-card-title-and-meta">
<a href="{{ post_url }}" class="post-card-link">
{{ post.title }}
</a>
{% include post_meta.html type="post-card-meta" date="none" %}
</p>
</div>
</div>
</li>
{% endfor %}
</ol>
<!-- Pagination -->
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}" class="previous">« Previous</a>
{% else %}
<span class="previous">« Previous</span>
{% endif %}
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}" class="next">Next »</a>
{% else %}
<span class="next">Next »</span>
{% endif %}
</div>
{% endif %}