forked from arshavindn/arshavindn.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (50 loc) · 1.58 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
---
layout: base
---
<div class="home">
<div class="post-list">
{% if paginator.posts %} {% for post in paginator.posts %}
<div class="post">
<header class="post-header">
<h1 class="post-title">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}"
>{{ post.title | escape }}</a
>
</h1>
<p class="post-meta">
<span class="post-meta publish-date"
>on {{ post.date | date: "%b %-d, %Y" }}</span
>
<span class="post-meta comment-count">
<i class="fa fa-comments" aria-hidden="true"></i
><span
class="comment-count"
></span>
</span>
</p>
</header>
<div class="post-preview">
{% if post.content contains '<!-- more -->' %} {{ post.content | split:'<!-- more -->'
| first | markdownify }} {% else %} {{ post.excerpt }} {% endif %}
<a href="{{ post.url }}">Read more...</a>
</div>
</div>
{% endfor %} {% else %}
<h2>There is no post to be displayed.</h2>
{% endif %}
</div>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="pure-button previous"
><i class="fa fa-angle-left" aria-hidden="true"></i> Previous</a
>
{% endif %} {% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="pure-button next"
>Next <i class="fa fa-angle-right" aria-hidden="true"></i
></a>
{% endif %}
</div>
<div class="pagination-clear"></div>
</div>
</script>