forked from maomu/maomu.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnovels.html
48 lines (38 loc) · 1.02 KB
/
novels.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
---
layout: default
title: 小说
description: 小说
keywords: design, geek
---
<p class="lotus-breadcrub">
<a href="{{ site.url }}/index.html" rel="nofollow" rel="nofollow" title="首页">Home</a>
<span> > </span>
{{ page.title }}
</p>
<h1 class="lotus-pagetit">小说</h1>
<article id="archives">
{% for post in site.categories.novels %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<ul>
<li><span>{{this_year}} </span>
<ul>
{% endif %}
<li>{{ post.date | date: "%B %e" }} : <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
{% if forloop.last %}
</ul>
</li>
</ul>
{% else %}
{% if this_year != next_year %}
</ul>
</li>
</ul>
<ul>
<li><span>{{next_year}} </span>
<ul>
{% endif %}
{% endif %}
{% endfor %}
</article>