-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (48 loc) · 1.28 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
---
layout: default
title: 刀儿博客-首页
---
<div>
<ul class="listing">
{% for post in site.posts limit: 5 %}
<article class="content">
<section class="title">
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
</section>
<section class="meta">
<span class="time">
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date:"%Y-%m-%d" }}</time>
</span>
<span> 作者:{{ post.author }}</span>
{% if post.categories %}
<span class="categories">
<span> 分类:</span>
{% for category in post.categories %}
<a href="/categories#{{ category }}-ref" title="{{ category }}">{{ category }}</a>
{% endfor %}
</span>
{% endif %}
{% if post.tags %}
<span class="tags">
<span> 标签:</span>
{% for tag in post.tags %}
<a href="/tags.html#{{ tag }}" title="{{ tag }}">{{ tag }}</a>
{% endfor %}
</span>
{% endif %}
</section>
<section class="post">
{{ post.content | strip_html | truncate:100}}
</section>
</article>
{% endfor %}
</ul>
<div class="center">
<a href="/archive.html" class="circle-wrapper">
更多文章
<div class="circle"> </div>
<div class="circle"> </div>
<div class="circle"> </div>
</a>
</div>
</div>