-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (75 loc) · 2.89 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
layout: default
title: "无涯子个人博客"
tagline: "Free as the wind."
keywords: "无涯子科技博客,无涯子个人博客,无涯子科技,微信高级接口jssdk,微信sdk,微信开发技术分享"
description: "无涯子科技博客,无涯子个人博客,无涯子科技,微信高级接口jssdk,微信sdk,微信开发技术分享"
---
{% include JB/setup %}
<!-- Recent Posts -->
<section>
{% for post in paginator.posts %}
<article class="nested">
<header>
<h2><a href="{{ post.url }}" title="查看《{{ post.title }}》">{{ post.title }}</a></h2>
</header>
<section>
<p>
{{ post.content | strip_html | truncate:300 }}
</p>
<a class="button-link" href="{{ post.url }}" title="查看全文">查看全文</a>
</section>
<footer>
<p>
发表日期:<a href="{{ site.JB.archive_path }}#{{ post.date | date: '%B-%Y' }}" title="查看此月所有文章">{{ post.date | date: "%Y-%m-%d" }}</a>,
作者:<a href="mailto:{{ site.author.email }}" title="向作者发送邮件">{{ site.author.name }}</a>,
类别:<a href="{{ site.JB.categories_path }}#{{ post.category }}-ref" title="查看此类别下的所有文章">{{ post.category }}</a>{% if site.JB.comments.provider == 'duoshuo' %},
评论:<a href="{{ post.url }}#ds-thread" title="查看此文章的评论"><span class="ds-thread-count" data-thread-key="{{ post.title }}" data-count-type="comments"></span></a>{% endif %}
</p>
</footer>
</article>
{% endfor %}
{% if site.JB.comments.provider == 'duoshuo' %}
{% assign duoshuo = 'jsonly' %}
{% include JB/comments-providers/duoshuo %}
{% endif %}
</section>
<!-- Pagination Links -->
<section class="pagination pagination-centered">
<ul>
<!-- First Page -->
{% if paginator.previous_page %}
<li><a href="/index.html">««</a></li>
{% else %}
<li class="disabled"><a href="#">««</a></li>
{% endif %}
<!-- Previous Page -->
{% if paginator.previous_page %}
<li>
{% if paginator.previous_page == 1 %}
<a href="/index.html">«</a>
{% else %}
<a href="/page{{ paginator.previous_page }}">«</a>
{% endif %}
</li>
{% else %}
<li class="disabled"><a href="#">«</a></li>
{% endif %}
<!-- Current Page -->
<li class="active">
<span class="page_number ">第 {{ paginator.page }}/{{ paginator.total_pages }} 页</span>
</li>
<!-- Next Page -->
{% if paginator.next_page %}
<li><a href="/page{{paginator.next_page}}">»</a></li>
{% else %}
<li class="disabled"><a href="#">»</a></li>
{% endif %}
<!-- Last Page -->
{% if paginator.next_page %}
<li><a href="/page{{ paginator.total_pages }}">»»</a></li>
{% else %}
<li class="disabled"><a href="#">»»</a></li>
{% endif %}
</ul>
</section>