-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (36 loc) · 1.34 KB
/
index.html
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
---
layout: default
title: "Home"
---
<ul class="posts" itemscope itemtype="http://schema.org/Blog">
{% for post in site.posts %}
{% if post.next %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% endif %}
{% if forloop.first %}
<li>
<h2 class="title">{{ post.date | date: '%Y' }}</h2>
<ul class="posts-by-year {{ post.date | date: '%Y' }}">
{% else %}
{% if year != nyear %}
</ul>
</li>
<li>
<h2 class="title">{{ post.date | date: '%Y' }}</h2>
<ul class="posts-by-year {{ post.date | date: '%Y' }}">
{% endif %}
{% endif %}
<li itemscope itemtype="http://schema.org/BlogPosting" class="post-title">
<time datetime="{{ post.date | date_to_xmlschema }}" class="hide-on-mobile">
<meta itemprop="datePublished" content="{{ post.date | date_to_xmlschema }}" />
{{ post.date | date: '%d %b' }}
</time>
<span class="separator hide-on-mobile"> » </span><a itemprop="headline" itemprop="name" href="{{ post.url }}" class="link">{{ post.title }}</a>
</li>
{% if forloop.last %}
</ul>
</li>
{% endif %}
{% endfor %}
</ul>