-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
36 lines (29 loc) · 1020 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
33
34
35
36
---
layout: default
---
<div class="posts">
{% assign posts = site.posts %}
{% if site.paginate %}
{% assign posts = paginator.posts %}
{% endif %}
{% for post in posts %}
<article class="post">
<h3 class="post-title"><a href="{{ site.url }}{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h3>
<div class="post-text">
{{ post.excerpt }}
</div>
<a href="{{ site.url }}{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
<div style="width: 100%; height: 16px;"></div>
</article>
{% endfor %}
</div>
{% if site.paginate %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ site.url }}{{ site.baseurl }}{{ paginator.previous_page_path }}" title="Newer Posts" class="newer">Newer</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ site.url }}{{ site.baseurl }}{{ paginator.next_page_path }}" title="Older Posts" class="older">Older</a>
{% endif %}
</div>
{% endif %}