forked from PChou/PChou.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.html
28 lines (25 loc) · 1.03 KB
/
tag.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
---
layout: page
title: 文章标签
header: 文章标签
group: navigation
---
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_words = site_tags | split:',' | sort %}
<!-- Tab panes -->
<!-- <div class="tab-content col-sm-9 col-xs-6"> -->
<article>
{% for item in (0..site.tags.size) %}{% unless forloop.last %}
{% capture this_word %}{{ tag_words[item] | strip_newlines }}{% endcapture %}
<div>
<a name="{{this_word}}"></a>
<h2 name="{{ this_word }}" style="margin-top: 0px">{{ this_word }}</h2>
<ul class="list-unstyled">
{% for post in site.tags[this_word] %}{% if post.title != null %}
<li style="line-height: 35px;list-style:none;"><a href="{{ site.BASE_PATH }}{{post.url}}">{{post.title}}</a> <span class="text-muted">- {{ post.date | date: "%B %d, %Y" }}</span></li>
{% endif %}{% endfor %}
</ul>
</div>
{% endunless %}{% endfor %}
</article>
<div class="clearfix"></div>