-
Notifications
You must be signed in to change notification settings - Fork 0
/
posts.njk
32 lines (32 loc) · 844 Bytes
/
posts.njk
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
---
layout: main.njk
title: Posts
---
<style>
h4 {
margin-bottom: 0;
margin-top: 0;
}
</style>
<span>
<a href="/">home</a>
<span>/</span>
<span>all posts</span>
</span>
<h1>Posts</h1>
<p>I occasionally write my heart and brains out here. This collection is made to last.</p>
<hr/>
<div>
{%- for post in collections.posts | reverse -%}
<div style="display: flex; align-items: flex-start; margin-bottom: 10px">
<span style="flex: 0.2;font-size: 14px">{{ post.date | dateReadable }}</span>
<h4 style="flex: 0.7;margin-left:10px">
{%if post.data.external %}
<a href="{{ post.data.external }}">{{ post.data.title }}</a>
{% else %}
<a href="{{ post.url }}">{{ post.data.title }}</a>
{% endif %}
</h4>
</div>
{%- endfor -%}
</div>