forked from CloudCannon/treat-jekyll-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·32 lines (27 loc) · 925 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
---
title: Home
---
<p>This is my local change not on GitHub</p>
<section class="posts">
{% for post in paginator.posts %}
<article class="post">
{% include post-heading.html post=post %}
<div class="image">
<img src="{{ post.featured_image }}" alt="{{ post.title }}">
</div>
{{ post.excerpt }}
<p><a class="button" href="{{ site.baseurl }}{{ post.url }}">Read more</a></p>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ site.baseurl }}{{ paginator.previous_page_path }}" class="previous btn">← Newer posts</a>
{% endif %}
<span class="page_number ">{{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ site.baseurl }}{{ paginator.next_page_path }}" class="next btn">Older posts →</a>
{% endif %}
</div>
{% endif %}
</section>