-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (38 loc) · 1.36 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
---
title: Home
layout: default
---
<div class="post group">
{% for post in paginator.posts limit:2 %}
<article class="entry">
{% if post.title == "" %}
<header style="display: none;"></header>
{% else %}
<header>
<h2><a href="{{ post.url }}"> {{ post.title }}</a></h2>
</header>
{% endif %}
{% if post.content contains '<!--more-->' %}
{{ post.content | split:'<!--more-->' | first }}
<p><a href="{{ post.url }}">Continue reading...</a></p>
{% else %}
{{ post.content }}
{% endif %}
<p class="timestamp">→ {{ post.date | date_to_long_string }}</p>
</article>
{% endfor %}
</div>
<div class="paginate group">
<ul>
{% if paginator.next_page %}
<li class="older"><a href="{{ paginator.next_page_path }}" title="Older"><span class="fa fa-chevron-left"></span> <span class="older-entries">older</span></a></li>
{% else %}
<li class="older"><span style="color: #999!important">older</span></li>
{% endif %}
{% if paginator.previous_page %}
<li class="newer"><a href="{{ paginator.previous_page_path }}" title="Newer"><span class="newer-entries">newer</span> <span class="fa fa-chevron-right"></span></a></li>
{% else %}
<li class="newer"><span style="color: #999!important">newer</span></li>
{% endif %}
</ul>
</div>