-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (36 loc) · 1.01 KB
/
index.html
File metadata and controls
40 lines (36 loc) · 1.01 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
---
layout: default
title: Blog
---
{% for post in paginator.posts %}
<article class="hentry">
<div class="post-header">
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
<span>by <a href="http://github.com/{{post.author}}">{{ post.author }}</a>, on {{ post.date | date_to_string }}</span>
</div>
<div class="post-content">
{% if post.content contains "<!-- more -->" %}
{{ post.content | split:"<!-- more -->" | first }}
<a class="read-more" href="{{ post.url }}">Read more »</a>
{% else %}
{{ post.content }}
{% endif %}
</div>
</article>
{% endfor %}
<nav class="pagination">
{% if paginator.previous_page %}
<div class="prev">
{% if paginator.previous_page == 1 %}
<a href="/blog/">← Newer</a>
{% else %}
<a href="/blog/page{{paginator.previous_page}}">← Newer</a>
{% endif %}
</div>
{% endif %}
{% if paginator.next_page %}
<div class="next">
<a href="/blog/page{{paginator.next_page}}">Older →</a>
</div>
{% endif %}
</nav>