-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcategory.html
More file actions
57 lines (53 loc) · 1.97 KB
/
Copy pathcategory.html
File metadata and controls
57 lines (53 loc) · 1.97 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: default
---
<div class="container">
<h1 style="background-image:linear-gradient(90deg, #f79533 0px, #f37055 15%, #ef4e7b 30%, #a166ab 44%, #5073b8 58%, #1098ad 72%, #07b39b 86%, #6dba82 100%);border-radius: 4px;color: #fff">
分类列表
</h1>
<div class="col-xs-3 col-sm-3 col-md-2" style="border-right: 1px solid #ddd;border-radius: 4px;">
<ul class="list-group">
{% for category in site.categories %}
{% if category[0] == "crawler" or category[0] == "crawlerfirst" or category[0] == "gitblog" or category[0] == "gitblogfirst"%}
{% else %}
<a href="{{ "/showCategory.html?cat=" | prepend: site.baseurl }}{{ category | first }}" class="list-group-item">
{{ post.title }}{{ category | first }}
<span class="badge" style="background-color: #FF8C00">{{ category | last | size }}</span>
</a>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="col-xs-9 col-sm-9 col-md-10" style="background-color: #f4f4f4;border-radius: 4px;">
<table class="table table-striped">
<thead>
<tr>
<th>文章标题</th>
<th>创建时间</th>
<th>文章标签</th>
</tr>
</thead>
<tbody>
{% for post in site.posts %}
{% if post.categories[0] == "crawler" or post.categories[0] == "crawlerfirst" or post.categories[0] == "gitblog" or post.categories[0] == "gitblogfirst"%}
{% else %}
{% for category in post.categories %}
<tr>
<th><span class="topicc text-overflow"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></span></th>
<th><i class="icon fa-calendar"></i><a href="javascript:void(0)">{{ post.date | date: " %Y-%m-%d" }}</a></th>
<th><a href="{{ "/showCategory.html?cat=" | prepend: site.baseurl }}{{ category }}">{{ category }}</a></th>
</tr>
{% endfor %}
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
</div>
<style>
.topicc {
background: url({{ "/static/jpg/wenzhang.gif" | prepend: site.baseurl }}) no-repeat left center;
padding-left: 20px;
margin: 0 10px 0 0;
}
</style>