-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
24 lines (19 loc) · 911 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
---
layout: default
---
<div class="home">
<ul class="post-list">
{% for post in site.posts %}
<li>
<h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
<time class="post-meta" datetime="{{ post.date | date: '%Y-%m-%d' }}">
{% assign day = post.date | date: "%d" | plus: 0 %}{{ post.date | date: "%B" }} {% case day %}{% when 1 or 21 or 31 %}{{ day }}st,{% when 2 or 22 %}{{ day }}nd, {% when 3 or 23 %}{{ day }}rd,{% else %}{{ day }}th,{% endcase %} {{ post.date | date: "%Y" }}
</time>
<section class="post-excerpt" itemprop="description">
<p class="post-description">{{ post.excerpt | strip_html | truncatewords: 50 }}</p>
</section>
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>