-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy patharchive.html
More file actions
31 lines (27 loc) · 1.08 KB
/
Copy patharchive.html
File metadata and controls
31 lines (27 loc) · 1.08 KB
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
---
layout: default
---
<div class="container">
<h1 style="background-image:linear-gradient(90deg, #f79533 0px, #f37055 15%, #ef4e7b 30%, #a166ab 44%, #5073b8 58%, #1098ad 72%, #07b39b 86%, #6dba82 100%);border-radius: 4px;color: #fff">
分类列表
</h1>
<div class="col-xs-7 col-sm-7 col-md-9" style="margin-top:30px;">
<ul class="list-group">
{% for post in site.posts %}
{% capture y %}{{post.date | date:"%Y"}}{% endcapture %}
{% capture m %}{{post.date | date:"%m"}}{% endcapture %}
{% if year != y or month != m %}
{% assign year = y %}
{% assign month = m %}
<li class="list-group-item active" style="background-color:rgba(220, 220, 220, 0.5);">{{ y }}- {{ m }}</li>
{% endif %}
<li class="list-group-item">
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date:"%Y-%m-%d" }}</time>
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
{% include rightmenu.html %}
</div>
<script type="text/javascript" src="{{ "/static/js/jquery.q.js" | prepend: site.baseurl }}"></script>