forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.html
42 lines (36 loc) · 1.14 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
34
35
36
37
38
39
40
41
42
---
layout: default
---
{% assign lastmonth = '' %}
<div class="posts">
{% for post in site.posts %}
{% assign thismonth = post.date | date: "%B %Y" %}
{% if lastmonth != thismonth %}
{% unless lastmonth == '' %} </ul> {% endunless %}
<h2>
{{ thismonth }}
</h2>
<ul>
{% assign lastmonth = thismonth %}
{% endif %}
<li>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title | markdownify | remove: '<p>' | remove: '</p>' }} ({{ post.date | date: "%Y-%m-%d" }})</a>
<span>[
{% for tag in post.tags | sort %}
{% if forloop.first %}
{% assign padding = '' %}
{% else %}
{% assign padding = ', ' %}
{% endif %}
<a href="{{ site.baseurl }}{{ site.tag_page }}{{ tag | replace: ' ', '_' }}" class="post-tag">{{ padding }}{{ tag }}</a>
{% endfor %}
]</span>
</li>
{% endfor %}
{% unless lastmonth == '' %} </ul> {% endunless %}
</div>
<h2>The Ancient zedware.org</h2>
<div class="homepage">
<a href="{{ site.baseurl }}/homepage/index.html">Homepage of the ancient zedware.org</a>
</div>
{% include tag_cloud.html %}