-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (39 loc) · 1.38 KB
/
index.html
File metadata and controls
40 lines (39 loc) · 1.38 KB
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
---
layout: layout
title: Kyle Schmidt
---
<h1 class="index-title">{{ site.name }}</h1>
<section class="content">
<ul class="listing">
{% for post in site.posts %}
{% comment %} This will break, if ever the first post is a Tale. But given what I'm trying to do with Tales, I'm betting that won't happen.{% endcomment %}
{% if post.tags contains "Tale" %}
{% else %}
{% if forloop.first %}
<li><h2 class="year-listing-header">{{ post.date | date: "%Y" }}</h2><ul>
{% capture year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% endif %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% if this_year != year %}
{% assign year = this_year %}
</ul></li>
<li><h2 class="year-listing-header">{{ post.date | date: "%Y" }}</h2><ul><li>
{% else %}
<li>
{% endif %}
<time datetime='{{post.date | date: "%Y-%m-%d"}}'>{{post.date | date: "%B %-d"}}</time>
<div class="post-listing">
<a href="{{ post.url }}">{{ post.title }}</a>
{% for tag in post.tags %}
<a class="tag {{ tag|downcase }}" href="/tag/{{ tag }}">{{ tag }}</a>
{% endfor %}
</div>
{% if forloop.last %}
</ul></li>
{% else %}
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</section>