-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.html
More file actions
33 lines (32 loc) · 932 Bytes
/
archive.html
File metadata and controls
33 lines (32 loc) · 932 Bytes
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
---
layout: default
title: 所有文章
---
<div class="container-fluid module-archive">
<section>
{%for post in site.posts %}
{% unless post.next %}
{% include archive-month.html %}
<ul class="list-unstyled">
{% else %}
{% capture month %}{{ post.date | date: '%m' }}{% endcapture %}
{% capture nmonth %}{{ post.next.date | date: '%m' }}{% endcapture %}
{% if month != nmonth %}
</ul>
{% include archive-month.html %}
<ul class="list-unstyled">
{% endif %}
{% endunless %}
<li>
<time>{{ post.date | date: '%Y-%m-%d %a.' }} </time>
<div>
<a class="title" href="{{ post.url }}">{{ post.title }}</a>
{% for tag in post.tags %}
<a class="tag" href="/tags.html#{{tag}}">{{tag}}</a>
{% endfor %}
</div>
</li>
{% endfor %}
</ul>
</section>
</div>