forked from kaeyleo/jekyll-theme-H2O
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtags.html
33 lines (28 loc) · 955 Bytes
/
tags.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
---
title: 分类
layout: default
---
{% include header.html %}
<div class="g-banner tags-banner {{ site.postPatterns | prepend: 'post-pattern-' }} {{ site.theme-color | prepend: 'bgcolor-' }}" data-theme="{{ site.theme-color }}">
<h1>{{ page.title }}</h1>
</div>
<main class="tags-content">
<ul class="tags-list">
<li>
{% if site.recommend-tags and site.tags.size>0 %}
{% for tag in site.tags %}
<a href="#{{ tag[0] }}" class="tag">{{ tag[0]}}</a>
{% endfor %}
{% endif %}
</li>
{% for tag in site.tags %}
<li>
<span class="tag-name" id="{{ tag[0] }}">「{{ tag[0] }}」</span>
{% for post in tag[1] %}
<a class="tag-post" href="{{ post.url | relative_url }}" title="{{ post.title }}">{{ post.title }}</a>
{% endfor %}
</li>
{% endfor%}
</ul>
</main>
{% include footer.html %}