forked from KrauseFx/krausefx.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.html
49 lines (45 loc) · 1.08 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
43
44
45
46
47
48
49
---
layout: page
title: Archive
permalink: /archive
---
<section class="archive-post-list">
{% for post in site.posts %}
{% assign currentDate = post.date | date: "%Y" %}
{% if currentDate != myDate %}
{% unless forloop.first %}</ul>{% endunless %}
<h1>{{ currentDate }}</h1>
<ul>
{% assign myDate = currentDate %}
{% endif %}
<li>
<a href="{{ post.url }}" class="archiveLink">
<span class="archiveSpan">{{ post.date | date: "%B %-d, %Y" }}</span> - <span class="archiveTitle">{{ post.title }}</span>
</a>
</li>
{% if forloop.last %}</ul>{% endif %}
{% endfor %}
</section>
<!-- Via http://chris.house/blog/building-a-simple-archive-page-with-jekyll/ -->
<style type="text/css">
.archiveSpan {
font-size: 15.75px;
color: #8f8f8f;
overflow: hidden;
margin: 0;
}
.archiveTitle {
color: #2076e1;
}
.archiveLink {
text-decoration: none !important;
}
.archiveLink:hover * {
color: rgb(17, 17, 17);
}
.archive-post-list > ul {
list-style: none;
}
.archive-post-list > ul > li {
}
</style>