-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
34 lines (33 loc) · 975 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
25
26
27
28
29
30
31
32
33
34
---
layout: default
title: Home
---
<section class="posts-grid">
<header>
<div class="posts-grid__header">
<h2>Latest Writings</h2>
<a href="{{site.baseurl}}/writings/" class="button">View All →</a>
</div>
<hr />
</header>
{% for post in collections.posts limit:8 %}
<article class="posts-grid__item">
<a href="{{ site.baseurl }}{{ post.url }}" class="posts-grid__link">
<h3 class="posts-grid__item-title">{{ post.data.title }}</h3>
</a>
<p class="posts-grid__summary">{{ post.content | excerpt }}</p>
<div class="posts-grid__meta">
<time datetime="{{ post.date | date_to_xmlschema }}"
>{{ post.date | date_to_long_string_locale }}</time
>
<span>
- {% for category in post.data.categories %}
<a href="{{site.baseurl}}/categories/#{{category|slugify}}"
>{{ category }}</a
>
{% endfor %}
</span>
</div>
</article>
{% endfor %}
</section>