-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.html
More file actions
30 lines (25 loc) · 808 Bytes
/
posts.html
File metadata and controls
30 lines (25 loc) · 808 Bytes
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
---
layout: default
title: Archive
---
<div id="home">
<div class="info-right">
<p>A blog about the things I think about. Fortunately, you won't see everything I think about, but you will see the ones I find worth sharing. These thoughts could be about anything ranging from Web Development, philosophy, or the environment.</p>
</div>
<div class="posts-left">
<h1>Blog Posts</h1>
<ul class="posts">
{% for post in site.posts %}
{% capture currentyear %}{{post.date | date: "%B %Y"}}{% endcapture %}
</br>
{% if currentyear != year %}
{% unless forloop.first %}</ul>{% endunless %}
<h1>{{ currentyear }}</h1>
<ul>
{% capture year %}{{currentyear}}{% endcapture %}
{% endif %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>