-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (40 loc) · 1.21 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
---
title: Home
---
<div class="home">
<div class="blog section">
<h1>Work</h1>
<hr>
<br />
<section class="posts">
{% for post in paginator.posts %}
{% if post.categories contains "Feature" %}
{% else %}
<article class="post">
{% include post-heading.html post=post %}
<div class="image">
<a href="{{ site.baseurl }}{{ post.url }}">
<img src="{{ post.feature_image }}" alt="{{ post.feature_image_title }}">
</a>
</div>
<p>
{{ post.excerpt | strip_html | truncatewords: 25 }}
</p>
<p><a class="button" href="{{ site.baseurl }}{{ post.url }}">Read more</a></p>
</article>
{% endif %}
{% 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>
</div>
</div>