-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.html
50 lines (49 loc) · 1.83 KB
/
page.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
---
layout: default
id: pageall
---
<h1 class="page-title">文章列表</h1>
<ul class="post-listing">
{% for post in paginator.posts %}
<li class="post-item">
<article class="post">
<div class="entry">
<h2 class="post-title"><a href="{{ post.url }}" class="dark-link">{{ post.title }}</a></h2>
<span class="inpost-date"><time pubdate="{{ post.date | date_to_utc | date: '%Y-%m-%d' }}">{{ post.date | date_to_utc | date: "%Y-%m-%d" }}</time></span>
</div>
<div class="post-info">
<span class="cat-info pi">Cat:<a href="/categories/{{ post.category | slugize }}">{{ post.category }}</a></span>
<span class="tag-list pi">Tags:{% for tag in post.tags %}<a href="/tags/{{ tag | slugize}}" class="tag-item">{{ tag }}</a>{% endfor %}</span>
</div>
<div class="post-content">
{% if post.summary %}
{{ post.summary | strip_html | truncatewords: 150 }}
{% elsif post.description %}
{{ post.description | strip_html | truncatewords: 100 }}
{% else %}
{{ post.content | strip_html | truncatewords: 50 }}
{% endif %}
<a href="{{ post.url }}" title="Read More" rel="nofollow" class="v-more"><span>➥</span>Read More</a>
</div>
</article>
</li>
{% endfor %}
</ul>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="/page.html" class="previous">Previous</a>
{% else %}
<a href="/page{{paginator.previous_page}}" class="previous">Previous</a>
{% endif %}
{% else %}
<span class="previous">Previous</span>
{% endif %}
<span class="page_number ">Page: {{paginator.page}} of {{paginator.total_pages}}</span>
{% if paginator.next_page %}
<a href="/page{{paginator.next_page}}" class="next ">Next</a>
{% else %}
<span class="next ">Next</span>
{% endif %}
</div>