-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathcategories.html
42 lines (39 loc) · 989 Bytes
/
categories.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
---
layout: default
title: Categories
permalink: /categories/
---
<div class="tabbable tabs-right row-fluid">
<ul class="nav nav-tabs" id="categories-nav">
{% for tag in site.tags %}
<li>
<a href="#{{ tag | first }}-ref" data-toggle="tab">
{{ tag | first }}
</a>
</li>
{% endfor %}
</ul>
<div class="tab-content">
{% for tag in site.tags %}
<div class="tab-pane" id="{{ tag | first }}-ref">
<ul class="posts-list">
{% for post in site.tags[tag.first] %}
<li>
<span class="category-archive">
<a href="{{ post.url }}">{{ post.title }}</a>
</span>
<span class="post-right-info pull-right">
{{ post.record_on | date: " %Y 年 %m 月 %d 日" }}
</span>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</div>
<script>
$(function () {
$('#categories-nav a:first').tab('show');
})
</script>