forked from GangYang2012/heiswayi.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
27 lines (23 loc) · 835 Bytes
/
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
---
layout: default
title: Home
---
<div class="posts">
{% for post in site.posts %}
{% unless post.next %}
<h2 class="year"><i class="fa fa-calendar"></i> {{ post.date | date: '%Y' }} ¬</h2>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<h2 class="year"><i class="fa fa-calendar"></i> {{ post.date | date: '%Y' }} ¬</h2>
{% endif %}
{% endunless %}
<div class="post-list">
<div class="post-list-date"><small>{{ post.date | date: "%b %d" }}</small></div>
<div class="text-truncate"><a href="{{ post.url }}">{{ post.title }}</a></div>
<div class="post-list-desc">{{ post.description }}</div>
</div>
{% endfor %}
</div>
<hr/>