-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2tags.html
63 lines (57 loc) · 1.74 KB
/
2tags.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
63
---
layout: default
title: Tags
permalink: /tag/
icon: tags
type: page
---
<div class="page clearfix">
<div class="left">
<h1>{{page.title}}</h1>
<hr>
{% capture tags %}
{% for tag in site.tags %}
{{ tag[0] }}
{% endfor %}
{% endcapture %}
{% assign sortedtags = tags | split:' ' | sort %}
<ul>
{% for tag in sortedtags %}
<h2 id="{{ tag }}">{{ tag }}</h2>
{% for post in site.tags[tag] %}
<li>
<time>
{{ post.date | date:"%F" }} {{ post.date | date: "%a" }}.
</time>
<a class="title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
{% include category.html %}
{% include tag.html %}
</li>
{% endfor %}
{% endfor %}
</ul>
</div>
<button class="anchor"><i class="fa fa-anchor"></i></button>
<div class="right">
<div class="wrap">
<!-- Content -->
<div class="side content">
<div>
Content
</div>
<ul id="content-side" class="content-ul">
{% for tag in sortedtags %}
<li>
<a data-scroll href="#{{ tag }}">
{{ tag }} ({{ site.tags[tag].size }})
</a>
</li>
{% endfor %}
</ul>
</div>
<!-- 其他div框放到这里 -->
<!-- <div class="side">bbbb</div> -->
</div>
</div>
</div>
<script src="{{ "/js/pageContent.js " | prepend: site.baseurl }}" charset="utf-8"></script>