-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·43 lines (34 loc) · 1.06 KB
/
index.html
File metadata and controls
executable file
·43 lines (34 loc) · 1.06 KB
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
---
layout: default
title: Home
---
{% for post in site.posts limits: 10 %}
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<span class="post-date">{{ post.date | date: "%B %d, %Y" }}</span>
{% if post.content.size > 1000 %}
{{ post.content | strip_html | truncatewords: 100 }}
<a href="{{ post.url }}">read more</a>
{% else %}
{{ post.content }}
{% endif %}
<p>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="postnavigation">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="prev left" href="/">← Newer</a>
{% else %}
<a class="prev left" href="/page{{paginator.previous_page}}/">← Newer</a>
{% endif %}
{% else %}
<span class="nope left">← Newer</span>
{% endif %}
<span class="pages">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a class="next right" href="/page{{paginator.next_page}}/">Older →</a>
{% else %}
<span class="nope right">Older →</span>
{% endif %}
</div>
{% endif %}