-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathblog.html
More file actions
25 lines (21 loc) · 716 Bytes
/
Copy pathblog.html
File metadata and controls
25 lines (21 loc) · 716 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
---
layout: page
title: Blog
permalink: /blog/
permalink: index.html
---
<div class="home">
{% for post in site.posts %}
{% capture post_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% if post_year != current_year %}
{% unless forloop.first %}</ul>{% endunless %}
<h2>{{ post_year }}</h2>
<ul class="post-list">
{% capture current_year %}{{ post_year }}{% endcapture %}
{% endif %}
<li>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
</li>
{% endfor %}
</div>