-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpost.html
62 lines (58 loc) · 1.87 KB
/
post.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
---
layout: page
title: 段子 / Posts
---
<div class="row">
<div class="col-xs-12">
<h1>分类 <small class="text-muted">Categories</small></h1>
<ul class="list-inline">
{% for category in site.categories %}
<li class="list-inline-item">
<span class="h2"><span class="tag tag-info">{{ category | first }}</span></span>
</li>
{% endfor %}
</ul>
<p>
{% for tag in site.tags %}
<span class="tag tag-success">#{{ tag | first }}</span>
{% endfor %}
</p>
</div>
</div>
<div class="row m-t-3">
<div class="col-xs-12">
<h1>专题 <small class="text-muted">Showcase</small></h1>
{% for post in site.categories.showcase %}
<div class="card card-block">
<h4 class="card-title">{{ post.title }}</h4>
<p class="card-text">{{ post.abstract }}</p>
<a href="{{ post.url | prepend: site.baseurl }}" class="btn btn-primary">了解更多 <i class="fa fa-chevron-circle-right" aria-hidden="true"></i></a>
<p class="card-text"><small class="text-muted">{{ post.date | date: "%b %-d, %Y" }}</small></p>
</div>
{% endfor %}
</div>
</div>
<div class="row m-t-3">
<div class="col-xs-12">
<h1>所有段子 <small class="text-muted">All Posts</small></h1>
<ul>
{% for post in site.posts %}
{% unless post.categories contains "showcase" %}
<li>
<span class="post-meta">
<span class="m-r-1">{{ post.date | date: "%b %-d, %Y" }}</span>
<small>
{% for tag in post.tags %}
<span class="text-muted">#{{ tag }}</span>
{% endfor %}
</small>
</span>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
</li>
{% endunless %}
{% endfor %}
</ul>
</div>
</div>