-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
33 lines (30 loc) · 1.42 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
---
layout: default
---
{% for post in paginator.posts %}
<article class="main-article">
<div class="wrap-content">
<header class="header-article">
<h2 class="title-article"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
<div class="post-date"><span>{{post.date | date: '%Y, %b %d'}} </span></div>
<div class=""><span>Author: {{post.author}} </span></div>
</header>
{% if post.img %}
<img class="post-image" src={{ "/assets/img/" | prepend: site.baseurl | append: post.img }} alt="{{post.title}}">
{% endif %}
<p>{{post.description}} <a class="more" href="{{post.url | prepend: site.baseurl}}">(Read more...)</a></p>
</div>
</article>
{% endfor %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="previous"><i class="fa fa-chevron-left" aria-hidden="true"></i> Previous</a>
{% else %}
<span class="previous"><i class="fa fa-chevron-left" aria-hidden="true"></i> Previous</span>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="next">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></a>
{% else %}
<span class="next ">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></span>
{% endif %}
</div>