init
This commit is contained in:
commit
c021228161
24 changed files with 1509 additions and 0 deletions
32
sites/jekyll-source/archive.md
Normal file
32
sites/jekyll-source/archive.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
layout: default
|
||||
title: Archive
|
||||
---
|
||||
|
||||
# Archive
|
||||
{::nomarkdown}
|
||||
{% assign current_year = "" %}
|
||||
{% for post in site.posts %}
|
||||
{% assign post_year = post.date | date: "%Y" %}
|
||||
|
||||
{% if post_year != current_year %}
|
||||
{% unless forloop.first %}
|
||||
</ul>
|
||||
{% endunless %}
|
||||
|
||||
<h2 id="y{{ post_year }}">{{ post_year }}</h2>
|
||||
<ul class="post-list">
|
||||
|
||||
{% assign current_year = post_year %}
|
||||
{% endif %}
|
||||
|
||||
<li>
|
||||
<span class="post-meta">{{ post.date | date: "%b %-d" }}</span>
|
||||
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
</li>
|
||||
|
||||
{% if forloop.last %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{:/}
|
Loading…
Add table
Add a link
Reference in a new issue