forked from pizn/pizn.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchives.html
34 lines (33 loc) · 1.48 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
---
layout: default
title: Archives
description: PIZn 的文章归档。在这里你可以找到 PIZn.Me 上的所有文章列表。在这里,不仅仅是用来快速记录工作,学习,生活的一点一滴的地方,更是 PIZn 对 Jekyll 的学习和使用的一次有意义的实践。
keywords: PIZn, GitHub, Archives, mac, css, html, javascript, violet, Jekyll, plugins, wordpress
isArchive: true
---
<article class="main-article main-article-page">
<div class="violet-title">
<h3 class="violet-title-item">All posts is here.<span>({{ site.posts | size }} posts.)</span></h3>
</div>
<div class="violet-post">
<div class="main-article-contant">
{% capture post_year1 %}{{ 'now' | date: '%Y' }}{% endcapture %}
<h3>{{ post_year1 }}</h3>
<ul class="article-year fn-clear">
{% for post in site.posts %}
{% capture post_year2 %}{{ post.date | date: '%Y' }}{% endcapture %}
{% if post_year1 != post_year2 %}
{% assign post_year1 = post_year2 %}
</ul>
<h3>{{ post_year1 }}</h3>
<ul class="article-year fn-clear">
{% endif %}
<li>
<span>{{ post.date | date_to_utc | date: '%Y-%m-%d' }}</span>
<a href="{{site.url}}{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</article>