-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·47 lines (38 loc) · 1.3 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
40
41
42
43
44
45
46
47
---
layout: default
title: Home
---
<section class="archive">
{% for post in site.posts %}
{% unless post.next %}
{% unless forloop.first %}</div></div>{% endunless %}
<div class="bundle row gutters fadeInDown animated">
<h2 class="post-year col span_2">{{ post.date | date: '%Y' }}</h2>
<div class="posts-by-year col span_10">
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
{% unless forloop.first %}</div></div>{% endunless %}
<div class="bundle row gutters fadeInDown animated">
<h2 class="post-year col span_2">{{ post.date | date: '%Y' }}</h2>
<div class="posts-by-year col span_10">
{% endif %}
{% endunless %}
<article class="row gutters">
<div class="col span_8">
<h2>
<a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}">
{{ post.title }}
</a>
</h2>
{{ post.excerpt }}
<img src="{{ post.image }}" class="post-thumbnail" href="{{ site.baseurl }}{{ post.url }}"/>
</div>
<div class="post-date col span_4">
<time datetime="{{ post.date | date: '%Y-%m-%d' }}">{{ post.date | date: "%-d %B" }}</time>
</div>
</article>
{% if forloop.last %}</div></div>{% endif %}
{% endfor %}
</section>