-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (30 loc) · 1.27 KB
/
index.html
File metadata and controls
35 lines (30 loc) · 1.27 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
---
layout: base
---
<aside class="about">
Howdy! My name is Taylor. I am a software developer. I live in Texas. Want to
know more? Read <a href="/about/">my about page</a>. Want to be notified about
updates? Subscribe to <a href="/sitemap.atom">the Atom feed</a>.
</aside>
<ol class="posts" itemprop="blogPosts">
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date:'%Y' }}{% endcapture %}
{% capture this_month %}{{ post.date | date:'%B' }}{% endcapture %}
{% if this_month != last_month or this_year != last_year %}
<li>
<span class="month">{{ this_month }}</span>
{% if this_year != last_year %}
<span class="year">{{ this_year }}</span>
{% endif %}
</li>
{% endif %}
<li class="post" itemscope itemtype="http://schema.org/BlogPosting" value="{{ post.date | date:'%d' }}">
<meta content="{{ post.date | date:'%Y-%m-%d' }}" itemprop="datePublished">
<a href="{{ post.url }}" itemprop="url">
<span itemprop="name">{{ post.title | escape }}</span>
</a>
</li>
{% assign last_year = this_year %}
{% assign last_month = this_month %}
{% endfor %}
</ol>