-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
80 lines (72 loc) · 3.52 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
---
layout: default
---
<link rel="stylesheet" type="text/css" href="/assets/css/article-list.css"/>
<div class="row index">
<div class="col-sm-10 col-sm-offset-1 col-lg-9 col-lg-offset-1_5">
<div>
<section class="category-slice" post-cate="All">
{% for post in site.posts %}
<article>
<header>
<span class="octicon octicon-calendar"></span> <span>{{ post.date | date: "%Y-%m-%d" }}</span>
</header>
<div class="module">
</span>
<a class="title" href="{{ post.url }}">
{{ post.title }}
</a>
<p>{% if post.excerpt.size > 32 %}{{ post.excerpt }}{% else %}{{post.content | strip_html | strip_newlines | truncate: 160 }}{% endif %}</p>
<footer>
{% for tag in post.tags %}
<a class="word-keep" href="/tags/#{{ tag }}"><span class="octicon octicon-tag"></span> {{ tag }}</a>
{% endfor %}
<span class="word-keep pull-right">
<a href="{{ post.url }}#post-comment">
<span class="octicon octicon-comment"></span> 评论
</a>
<a href="{{ post.url }}#post-share">
<span class="octicon octicon-file-symlink-file"></span> 分享
</a>
</span>
</footer>
</div>
</article>
{% endfor %}
</section>
{% for category in site.categories %}
<section class="category-slice" post-cate="{{category | first}}">
{% for posts in category %}
{% for post in posts %}
{% if post.url %}
<article>
<header>
<span class="octicon octicon-calendar"></span> {{ post.date | date: "%Y-%m-%d" }}
</header>
<div class="module">
<a class="title" href="{{ post.url }}">{{ post.title }}</a>
<p>{% if post.excerpt.size > 32 %}{{ post.excerpt }}{% else %}{{post.content | strip_html | strip_newlines | truncate: 160 }}{% endif %}</p>
<footer>
{% for tag in post.tags %}
<a class="word-keep" href="/tags/#{{ tag }}">
<span class="octicon octicon-tag"></span> {{ tag }}</a>
{% endfor %}
<span class="word-keep pull-right">
<a href="{{ post.url }}#post-comment">
<span class="octicon octicon-comment"></span> 评论
</a>
<a href="{{ post.url }}#post-share">
<span class="octicon octicon-file-symlink-file"></span> 分享
</a>
</span>
</footer>
</div>
</article>
{% endif %}
{% endfor %}
{% endfor %}
</section>
{% endfor %}
</div>
</div>
</div>