-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (79 loc) · 2.22 KB
/
index.html
File metadata and controls
88 lines (79 loc) · 2.22 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
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
88
---
layout: page
---
<link rel="stylesheet" media="all" href="/asserts/css/blog_archive.css" />
<link rel="stylesheet" media="all" href="/asserts/css/index.css" />
<div class="demo-container">
<!-- 个人简介-->
<div class="markdown-body">
<div class="title-container">
<h1 class="page-title"><a title="about"></a> </h1>
<section class="right-tips">
<span >
home
</span>
</section>
</div>
<div class="content-container">
<!-- 为了方便,这个变量覆盖局部变量-->
{% for post in paginator.posts %}
{% capture targetTag %}{{ post.categories | first }}{% endcapture %}
{% if targetTag != site.bookTag %}
{% if targetTag != site.musicTag %}
<div class="blog-content">
<h2 class="post-title"><a href="{{ post.url}}">{{ post.title }}</a> </h2>
<!-- metainfo-->
<section class="meta clearfix">
<span class="time">
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date:"%Y-%m-%d" }}</time>
</span>
{% if post.categories.size != 0 %}
|
<span class="categories">
分类
{% for cat in post.categories %}
<a href="/blog/categories.html#{{ cat }}" title="{{ cat }}">{{ cat }}</a>
{% endfor %}
</span>
{% endif %}
{% if post.tags.size != 0 %}
|
<span class="tags">
标签
{% for tag in post.tags %}
<a href="/blog/tags.html#{{ tag }}" title="{{ tag }}">{{ tag }}</a>
{% endfor %}
</span>
{% endif %}
</section>
<div class="excerpt">
<p>
{{post.description}}
</p>
</div>
<div class="read-more">
<a href="{{ post.url}}">
阅读全文 »
</a>
</div>
</div>
{% endif %}
{% endif %}
{% endfor %}
<!--分页相关 -->
<nav class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="prev"><< 上一页</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">下一页 >></a>
{% endif %}
<div class="center">
<a href="/blog/archive.html">博文归档</a>
</div>
</nav>
</div>
</div>
<!-- 多说-->
{% include litemplate/changyan %}
</div>