-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
73 lines (68 loc) · 2.04 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
layout: default
title: 人强码壮
---
<div id="home">
{% for post in paginator.posts %}
<article class="article">
<div class="article-date1">
<a href="{{ post.url }}" class="article-date2">{{ post.date | date:"%Y/%m/%d" }}</a>
</div>
<div class="article-inner">
<header class="article-header">
<h1>
<a href="{{ post.url }}" class="article-title">{{ post.title }}</a>
</h1>
</header>
<div class="article-entry">
<p>{{ post.excerpt }}</p>
<p class="article-more-link">
<a href="{{ post.url }}">Read More</a>
</p>
</div>
<footer class="article-footer">
<ul>
<span class="article-footer-tag">Tags: </span>
{% for tag in post.tags %}
<li class="article-footer-tag"> <a href="/tags">{{ tag }}</a> </li>
{% endfor %}
<span class="article-footer-tag"> | </span>
<span class="article-footer-tag"> Categoriy: </span>
{% for category in post.categories %}
<li class="article-footer-tag"> <a href="/categories">{{ category }}</a> </li>
{% endfor %}
</ul>
</footer>
</div>
</article>
{% endfor %}
<nav id="page-nav">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="previous" href="/">« Prev</a>
{% else %}
<a class="previous" href="{{ paginator.previous_page_path }}">« Prev</a>
{% endif %}
{% else %}
<span class="previous disabled">« Prev</span>
{% endif %}
{% if paginator.page == 1 %}
<span class="page-number current">1</span>
{% else %}
<a class="page-number" href="/">1</a>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<span class="page-number current">{{count}}</span>
{% else %}
<a class="page-number" href="/page{{count}}">{{count}}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a class="next" href="{{ paginator.next_page_path }}">Next »</a>
{% else %}
<span class="next disabled" >Next »</span>
{% endif %}
</nav>
</ul>
</div>