forked from lightfish-zhang/pinghsu-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archives.html
35 lines (30 loc) · 1.35 KB
/
archives.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
---
layout: default
---
<div class="main-content archive-page clearfix">
<div class="categorys-item">
<div class="post-lists">
<div class="post-lists-body">
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
{% capture next_year %}{{ post.next.date | date: "%Y" }}{% endcapture %}
{% capture next_month %}{{ post.next.date | date: "%B" }}{% endcapture %}
{% if this_month != next_month or this_year != next_year %}
<div class="categorys-title">{{ this_month }} {{ this_year }}</div>
{% endif %}
<div class="post-list-item">
<div class="post-list-item-container">
<div class="item-label">
<div class="item-title"><a href="{{ post.url }}">{{ post.title }}</a></div>
<div class="item-meta clearfix">
<div class="item-meta-date"> {{ post.date | date: "%b %d, %Y" }} </div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>