-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (50 loc) · 1.78 KB
/
index.html
File metadata and controls
58 lines (50 loc) · 1.78 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
layout: page
tagline:
---
{% include JB/setup %}
<div class="subnav page-launcher">
<ul class="nav nav-pills">{% for post in paginator.posts %}
<li><a href="#{{ post.url | replace:'/',''}}" title="{{ post.title }}">{{ post.title | truncatewords:2 }}</a></li>{% endfor %}
</ul>
</div>
<div class="row">
<div class="span8">
{% for post in paginator.posts %}
{% assign content = post.content %}
<section id="{{ post.url | replace:'/',''}}">
<article>
<header>
<h1><a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title }}</a></h1>
<div class="date">{{ site.author.name }} 发表于 <span>{{ post.date | date:"%Y-%m-%d" }}</span></div>
</header>
<div class="content">{{ content }}</div>
</article>
</section>
{% endfor %}
<div class="pagination">
<ul>{% if paginator.previous_page %}
<li class="next"><a href='{% if paginator.previous_page > 1 %}/page{{ paginator.previous_page}}{% else %}/{% endif %}'>← 上一页</a></li>{% endif %}
<li><a href="{{ BASE_PATH }}{{ site.JB.archive_path }}">归档</a></li>{% if paginator.next_page %}
<li class="prev"><a href='/page{{ paginator.next_page }}'>下一页 →</a></li>{% endif %}
</ul>
</div>
</div>
<aside class="span4">
<section>
<h4>最近发表</h4>
<ul id="recent_posts">{% for rpost in site.posts limit: 10 %}
<li class="post">
<a href="{{ BASE_PATH }}{{ rpost.url }}">{{ rpost.title }}</a>
</li>{% endfor %}
</ul>
</section>
{% unless site.categories == empty %}
<h4>分类</h4>
<ul class="tag_box">
{% assign categories_list = site.categories %}
{% include JB/categories_list %}
</ul>
{% endunless %}
</aside>
</div>