-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.html
More file actions
34 lines (32 loc) · 1.11 KB
/
posts.html
File metadata and controls
34 lines (32 loc) · 1.11 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
---
layout: page
title: Posts
permalink: /posts/
---
<section class="section" id="posts">
<div class="wrapper section__header">
<div>
<p class="eyebrow">All Posts</p>
<h1 class="section__title">Posts</h1>
<p class="section__subtitle">Updates, announcements, and lab notes.</p>
</div>
</div>
<div class="wrapper posts-grid">
{%- assign posts = site.posts -%}
{%- for post in posts -%}
<article class="post-card">
<p class="post-card__date">
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %d, %Y" }}</time>
</p>
<h2 class="post-card__title"><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
{%- if post.excerpt -%}
<p class="post-card__excerpt">{{ post.excerpt | strip_html | truncatewords: 32 }}</p>
{%- endif -%}
{%- if post.author -%}
<p class="post-card__meta">by {{ post.author }}</p>
{%- endif -%}
<a class="post-card__link" href="{{ post.url | relative_url }}">Read post</a>
</article>
{%- endfor -%}
</div>
</section>