-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·38 lines (36 loc) · 1005 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
37
38
---
layout: default
page_name: index
---
<ul class="listing">
{% for post in paginator.posts %}
<a class="listing-item" href="{{ post.url }}" title="{{ post.title }}">
{% if post.thumb %}
<b class="thumb" style="background-image: url({{ post.thumb | relative_url}})"></b>
{% else %}
<b class="thumb letter">
{{ post.title | truncate: 1,"" }}
</b>
{% endif %}
<h1>{{ post.title }}</h1>
<time datetime="{{ post.date | date:"%B %d, %Y" }}">
{{ post.date | date:"%B %d, %Y" }}
</time>
<p class="excerpt">{{ post.excerpt | strip_html | truncate: 66}}</p>
</a>
{% endfor %}
</ul>
{% if paginator.previous_page or paginator.next_page %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">⟵Previous</a>
{% else %}
<span class="previous">⟵Previous</span>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">Next⟶</a>
{% else %}
<span class="next ">Next⟶</span>
{% endif %}
</div>
{% endif %}