-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtopic.html
More file actions
65 lines (57 loc) · 2.38 KB
/
topic.html
File metadata and controls
65 lines (57 loc) · 2.38 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
---
layout: default
---
<div class="container">
<div class="col-xs-7 col-sm-7 col-md-9">
<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>
{% 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 %}
<div class="col-xs-12 col-sm-12 col-md-12 media thumbnail" style="clear:both;">
<div class="col-xs-4 col-sm-4 col-md-3" style="padding: 20px">
<a href="javascript:void(0)" class="media-left media-middle media-bottom" style="float:left;">
<img style="border-radius: 4px;" src="{{ "/static/jpg/" | prepend: site.baseurl }}{{ post.categories.first }}{{".jpg"}}" height="120" width="100%"/>
</a>
</div>
<div class="col-xs-8 col-sm-8 col-md-9 media-body" style="padding-bottom: 10px;">
<h3><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3>
{% for category in post.categories %}
<small class="text-muted">
分类:<i class="fa fa-tag"></i> <a href="{{ "/showCategory.html?cat=" | prepend: site.baseurl }}{{ category }}">{{ category }}</a>
</small>
{% endfor %}
<h6 class="text-muted"><i class="fa fa-user"></i> {{ post.author }} <i class="fa fa-calendar"></i> {{ post.date | date: " %Y-%m-%d" }} <i class="fa fa-pencil-square"></i> {{post.content | number_of_words}}</h6>
<p class="content text-overflow">
{% if post.desc %}
{{ post.desc }}
{% else %}
{{ post.excerpt | strip_html }}
{% endif %}
</p>
<h5><span class="topicc"><a href="{{ post.url | prepend: site.baseurl }}">阅读全文»</a></span></h5>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% include rightmenu.html %}
</div>
<style>
.text-overflow {
display: block;
width: 90%;
word-break: keep-all;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.topicc {
background: url({{ "/static/jpg/wenzhang.gif" | prepend: site.baseurl }}) no-repeat left center;
padding-left: 20px;
margin: 0 10px 0 0;
}
</style>