-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (52 loc) · 1.55 KB
/
index.html
File metadata and controls
57 lines (52 loc) · 1.55 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
---
layout: page
title: 蚊香的博客
keywords: wenxiang, web开发
description: 蚊香的个人博客, 探讨目前最时髦的web开发技术!!
tagline: 空
---
{% include JB/setup %}
<div class="row">
<div class="span8">
{% for post in paginator.posts %}
{% assign content = post.content %}
<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 | truncatewords:25 }}</div>
</article>
{% endfor %}
<div class="pagination">
<ul>
{% if paginator.next_page %}
<li class="prev"><a href='/page{{ paginator.next_page }}'>← Older</a></li>
{% endif %}
<li><a href="{{ BASE_PATH }}{{ site.JB.archive_path }}">归档</a></li>
{% if paginator.previous_page %}
<li class="next"><a href='/page{{ paginator.previous_page}}'>Newer →</a></li>
{% endif %}
</ul>
</div>
</div>
<aside class="span4">
<section>
<h4>最近发表</h4>
<ul id="recent_posts">
{% for rpost in site.posts limit: 6 %}
<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>