-
Notifications
You must be signed in to change notification settings - Fork 33
/
archive.html
34 lines (32 loc) · 1.02 KB
/
archive.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
---
layout: default
title: 文章归档
excerpt: "2013 年至今的博客归档,这些文章主要介绍 Linux、Web、Vim、C++ 等方面的技术。"
---
<div class="container page-archive">
<h1>文章归档</h1>
<section class="archive-list">
{%-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 class="hidden-xs">{{ post.date | date: '%Y-%m-%d' }} </time>
<div>
<a class="title" href="{{ post.url }}">{{ post.title }}</a>
{% for tag in post.tags %}{%include tag.html%}{% endfor %}
</div>
</li>
{%- endfor %}
</ul>
</section>
</div>