-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.html
More file actions
40 lines (35 loc) · 1.35 KB
/
Copy pathposts.html
File metadata and controls
40 lines (35 loc) · 1.35 KB
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
36
37
38
39
---
layout: home
title: "Posts"
---
<main class="page writing-page">
{% include nav.html current="posts" %}
{% assign published = site.posts | where_exp: "p", "p.draft != true" %}
{% assign post_count = published | size %}
<section class="writing-hero">
<div class="eyebrow">/posts · {{ post_count }} post{% if post_count != 1 %}s{% endif %}</div>
<h1 class="writing-title">Posts<span class="italic">.</span></h1>
<p class="writing-lede">
Life updates, career moves, and blabbering about technology. Updated whenever something worth writing about happens.
</p>
</section>
<section class="writing-index">
<div class="writing-index__head">
<h2 class="serif">All posts</h2>
<a class="writing-index__rss" href="/atom.xml">rss →</a>
</div>
<div class="writing-index__rows">
{% for post in published %}
<a class="writing-row" href="{{ post.url }}">
<span class="writing-row__date">{{ post.date | date: "%b %-d, %Y" }}</span>
<div class="writing-row__body">
<div class="writing-row__title serif">{{ post.title }}</div>
<div class="writing-row__excerpt">{{ post.excerpt | strip_html | truncate: 220 }}</div>
</div>
<span class="writing-row__arrow">→</span>
</a>
{% endfor %}
</div>
</section>
{% include footer.html %}
</main>