-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (30 loc) · 1.26 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
---
layout: default
---
<div class="home">
<!--{% for page in site.categories.life limit: 1 %}-->
{% for page in site.categories.life %}
<header class="post-header">
<h1><a href="{{ page.url }}">{{ page.title }}</a></h1>
<p class="meta"><i class="fa fa-calendar"></i> {{ page.date | date: "%Y-%m-%d" }}   <i class="fa fa-folder-open"></i>{% if page.category %} <a href="/categories/#{{page.category}}">{{ page.category }}</a> {% endif %}   <i class="fa fa-tags"></i> {% for tag in page.tags %} <a href="/tags/#{{ tag }}">{{ tag }}</a>{% endfor %}</p>
</header>
<article class="post-content">
{{ page.content }}
</article>
{% endfor %}
<ul class="posts">
<li class="listing-seperator">Keep going!</li>
{% capture month %}{{ site.time | date:"%m"}}{% endcapture %}
{% for post in site.posts %}
{% capture m %}{{ post.date | date:"%m"}}{% endcapture %}
{% if month != m %}
{% break %}
{% endif %}
<li class="listing-item">
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date:"%Y-%m-%d" }}</time>
<a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
</li>
{% endfor %}
<li class="listing-seperator"><a href="/blogs/">Long ago</a></li>
</ul>
</div>