-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (52 loc) · 1.61 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
52
53
54
55
56
---
layout: default
title: Home
---
{% for post in paginator.posts %}
<div class="post">
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<span class="hang">{{ post.date | date_to_string }}</span>
<p class="meta">
Category: <a href="/categories.html#category_{{ post.category }}">{{ post.category }}</a>. Tags:
{% for tag in post.tags %}
<a href="/tags.html#tag_{{ tag }}">{{ tag }}</a>{% if forloop.last%}.{% else %},{% endif %}
{% endfor %}
</p>
{{ post.content | replace:'more start -->','' | replace:'<!-- more end','' }}
<p class="meta"><a href="{{ post.url }}#disqus_thread">More...</a></p>
</div>
{% endfor %}
<div id="pagination">
<ul class="pages">
<li>
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/">« Previous</a>
{% else %}
<a href="/page{{paginator.previous_page}}">Previous</a>
{% endif %}
{% else %}
« Previous
{% endif %}
</li>
{% if paginator.page == 1 %}
<li class="current-page">1</li>
{% else %}
<li><a href="/">1</a></li>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<li class="current-page">{{count}}</li>
{% else %}
<li><a href="/page{{count}}">{{count}}</a></li>
{% endif %}
{% endfor %}
<li>
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}">Next »</a>
{% else %}
Next »
{% endif %}
</li>
</ul>
</div>