-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.bak
34 lines (32 loc) · 869 Bytes
/
index.html.bak
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
---
layout: default
---
<section>
<div class="jumbotron">
<div class="container">
{{site.description}}
</div>
</div>
</section>
<section id="page-content">
<div class="container">
{% if site.posts != empty %}
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
{% unless post == site.posts.first %}
{% endunless %}
<li id="{{ year }}">{{ year }}</li>
{% endunless %}
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">
{{ post.date | date:"%Y-%m-%d" }}
</time>
» <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title | capitalize }}</a><br />
{% endfor %}
{% else %}
<span>No posts</span>
{% endif %}
</div>
</div>
</section>