-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (39 loc) · 1.46 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
---
layout: default
title: A super simple blogging theme for Jekyll.
description: Simples is a super simple blogging theme for Jekyll.
featured_image: /images/social.png
---
<section class="listing single">
<div class="wrap">
{% for post in paginator.posts %}
<article class="listing-post">
<div class="listing-post__header">
<h2 class="listing-post__title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="listing-post__subtitle">{{ post.date | date_to_long_string }}</p>
</div>
{% if post.featured_image %}
<a href="{{ post.url }}" class="listing-post__image" style="background-image: url({{ post.featured_image }});"></a>
{% endif %}
<div class="listing-post__content">
<p>{{ post.excerpt }}</p>
<p><a href="{{ post.url }}" class="button">Read More</a>
</div>
</article>
{% endfor %}
</div>
</section>
{% if paginator.total_pages > 1 %}
<section class="pagination">
{% if paginator.previous_page %}
<div class="pagination__prev">
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="button button--large"><i class="fa fa-angle-left" aria-hidden="true"></i> <span>Newer Posts</span></a>
</div>
{% endif %}
{% if paginator.next_page %}
<div class="pagination__next">
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="button button--large"><span>Older Posts</span> <i class="fa fa-angle-right" aria-hidden="true"></i></a>
</div>
{% endif %}
</section>
{% endif %}