-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (27 loc) · 788 Bytes
/
index.html
File metadata and controls
28 lines (27 loc) · 788 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
---
layout: default
title: joshtronic
---
<div class="years">
{% assign year = nil %}
{% for post in site.posts %}
{% assign current_year = post.date | date: "%Y" %}
{% if year != current_year %}
{% if year != nil %}
</ul></div>
{% endif %}
<a name="{{ current_year }}"></a>
<div class="year year-{{ current_year }}" data-year="{{ current_year }}">
<h2>{{ current_year }}</h2>
<ul class="posts-{{ current_year }}">
{% assign year = current_year %}
{% endif %}
<li>
<time>{{ post.date | date: "%-d %B %Y" }}</time>
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p>{{ post.content | strip_html | truncatewords: 50 | xml_escape }}</p>
<a href="{{ post.url }}">Continue reading…</a>
</li>
{% endfor %}
</ul></div>
</div>