-
Notifications
You must be signed in to change notification settings - Fork 1
/
posts.html
28 lines (28 loc) · 1.22 KB
/
posts.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
---
i18n: true
js: tags tablesorter
no_comment: true
no_sidenav: true
permalink: /posts/
title: 文章列表
---
<div class="text-center" style="font-weight: bold; margin-bottom: 20px;">如果您在查找学习资料,请前往<a href="/study/">此处</a>。</div>
<ul class="xz-taglist nav nav-pills fade">
<li id="tag-" data-sort="{{ site.posts.size }}"><a href="#">全部<span class="badge">{{ site.posts.size }}</span></a></li>{% for tag in site.tags %}
<li id="tag-{{ tag[0] }}" data-sort="{{ tag[1].size }}"><a href="#{{ tag[0] }}">{{ tag[0] }}<span class="badge">{{ tag[1].size }}</span></a></li>{% endfor %}
</ul>
<table class="xz-postlist table tablesorter fade">
<thead>
<tr><th>标题</th><th>标签</th><th>创建时间</th><th>修改时间</th></tr>
</thead>
<tbody>{% for post in site.posts %}
<tr data-tags="{{ post.tags | join: " " }}">
<td><a href="{{ post.url }}">{{ post.title }}</a></td>
<td>{% for tag in post.tags %}
<span class="post-tag-simp badge"><a href="/posts/#{{ tag }}">{{ tag }}</a></span>{% endfor %}
</td>
<td>{{ post.date | date : "%Y-%m-%d %H:%M" }}</td>
<td>{{ post.last_modified_at| date : "%Y-%m-%d %H:%M" }}</td>
</tr>{% endfor %}
</tbody>
</table>