-
Notifications
You must be signed in to change notification settings - Fork 1
/
blog.html
35 lines (31 loc) · 1.2 KB
/
blog.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
---
layout: page
title: Blog
---
<div class="page-meta">
<h3 class="page-title">{{ page.title }}</h3>
</div>
{% include tag_parser.html %}
<div class="posts">
{% for post in site.posts %}
{% unless post.next %}
<h4>{{ post.date | date: '%Y' }}</h4>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<h4>{{ post.date | date: '%Y' }}</h4>
{% endif %}
{% endunless %}
<div class="post-list">
<div class="post-list-date"><small>{{ post.date | date: "%b %d" }}</small></div>
<a href="{{ post.url }}">{{ post.title }}</a>
<div class="post-list-desc">{{ post.description }}</div>
<div class="post-list-tags" id="Tags">
{% for tag in post.tags %}
<a id="{{ tag | slugify }}" class="tag-anchor" href="{{ site.url }}{{ site.baseurl }}/tagged#{{ tag | slugify }}"><i class="fa fa-tag muted"></i> {{ tag }}</a>
{% endfor %}
</div>
</div>
{% endfor %}
</div>