-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1category.html
59 lines (55 loc) · 1.91 KB
/
1category.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
---
layout: default
title: Categories
permalink: /category/
icon: th-list
type: page
---
<div class="page clearfix">
<div class="left">
<h1>{{page.title}}</h1>
<hr>
<ul>
{% for category in site.categories %}
<h2 id="{{category | first}}">{{category | first}}</h2>
{% for posts in category %}
{% for post in posts %}
{% if post.url %}
<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>
{% endif %}
{% endfor %}
{% 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 category in site.categories%}
<li>
<a data-scroll href="#{{ category | first }}">
{{ category | first }} ({{ category | last | 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>