-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
170 lines (170 loc) · 8.39 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
---
layout: layout
title: 首页 - Blogway_关注软件开发/互联网技术/大数据技术/敏捷开发/...
page_type: index
hot_category: 热门分类
bloglist: 博文列表
hot_author: 热门作者
high_author: 高产作者
viewnum: 访问量
blognum: 博文数
posted_on: 发布于
posted_by: 作者
filed_under: 分类
tags_on: 标签
read_more: 阅读全文
viewnum: 阅读
pre_page: 第
of_page: 页 共
end_page: 页
no_content: 无
limit_tags: 8
---
<section>
<div class="container">
<div class="row">
<div class="col-md-10">
<div class="articles">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<!-- 分类与年份的下拉框 -->
<div class="sort">
分类
<div class="select">
<span>ALL</span>
<ul class="wheel">
<li><span class="category">ALL</span><span class='pull-right check'>√</span></li>
</ul>
</div>
<span class="glyphicon glyphicon-chevron-down"></span>
</div>
<div class="time">
年份
<div class="select">
<span class="pull-left">ALL</span>
<ul class="wheel">
<li><span class="year">ALL</span><span class='pull-right check'>√</span></li>
{% for year in site.data.years %}
<li><span class="year">{{ year.y }}年度</span><span class='pull-right check'>√</span></li>
{% endfor %}
</ul>
</div>
<span class="glyphicon glyphicon-chevron-down"></span>
</div>
</div>
<div class="panel-body">
<!-- 主页面的博文 -->
<div class="row">
{% for post in site.posts %}
<div class="blog">
<div class="post_time">
{{ post.date | date: "%Y.%m.%d" }}
</div>
<div class="divider-line">
<img src="/images/circle-black.png">
</div>
<div class="post_info">
{% if post.image != null %}
<div class="post_pic">
<a href="{{ post.url }}">
<img src="{{ post.image }}">
</a>
</div>
{% endif %}
<div class="post_title">
<h4><a href="{{ post.url }}">{{ post.title }}</a></h4>
<p class="post_description">{{ post.description }}</p>
<div class="post_tag">
{% for author in site.authors %}{% if post.author == author.name %}
<span class='glyphicon glyphicon-user'>
<a href='{{ author.page_path }}'>{{ post.author }}</a>
</span>
{% endif %}
{% endfor %}
<span class='glyphicon glyphicon-tags kind'>
<a href='/categories/{{post.category}}'>{{ post.category }}</a>
</span>
</div>
</div>
</div>
<div class="post_scan">
阅读量<br/>
{% if site.leancloud.enable %}
<span id="{{ post.url }}" class="leancloud_visitors" data-flag-title="{{ post.title }}">
<span class="leancloud-visitors-count"></span>
</span>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class="footer">
向下滑动加载更多...
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-2 sideBar hidden-sm hidden-xs">
<!-- 年度博文列表 -->
<div class="list-group" id="year_Blog">
<a href="/yearBlog/index.html" class="list-group-item">
<span class="glyphicon glyphicon-calendar">
年度博文
</span>
</a>
{% assign count = 1 %}
{% for post in site.posts reversed %}
{% assign year = post.date | date: '%Y' %}
{% assign nyear = post.next.date | date: '%Y' %}
{% if year != nyear %}
{% assign count = count | append: ', ' %}
{% assign counts = counts | append: count %}
{% assign count = 1 %}
{% else %}
{% assign count = count | plus: 1 %}
{% endif %}
{% endfor %}
{% assign counts = counts | split: ', ' | reverse %}
{% assign i = 0 %}
{% for post in site.posts %}
{% assign year =post.date | date: '%Y' %}
{% assign nyear = post.next.date | date: '%Y' %}
{% if year !=nyear %}
<a href="/yearBlog/index.html?year={{post.date| date: '%Y'}}" class="list-group-item">
{{post.date| date: '%Y'}}年度
<span class="pull-right badge">{{counts[i]}}</span>
<div class="inset-line"></div>
</a>
{% assign i=i | plus: 1 %}
{% endif %}
{% endfor %}
</div>
<!-- 热门分类 -->
<div class="list-group">
<a class="list-group-item">
<span class="glyphicon glyphicon-tags">
热门分类
</span>
</a>
<div id="categorybar-list">
</div>
</div>
<!-- 人气博主 -->
<div class="list-group">
<a class="list-group-item">
<span class="glyphicon glyphicon-heart">
人气博主
</span>
</a>
<div id="my-like">
</div>
</div>
</div>
</div>
</div>
</section>
<link rel="stylesheet" href="/css/index.css">
<script src="/js/index.js"></script>