post page and post list builds

This commit is contained in:
Matt DeCamp 2021-09-05 15:30:04 -04:00
parent 5fd7846d96
commit 66d04c10e8
3 changed files with 22 additions and 0 deletions

View file

View file

@ -0,0 +1,15 @@
<div id="posts--list">
{%- for item in collections.post -%}
<article>
<h2>
{{ item.data.title }}
</h2>
<p>
{{ item.data.date }}
</p>
<p>
{{ item.data.page.excerpt }}
</p>
</article>
{%- endfor -%}
</div>

7
src/pages/posts.njk Normal file
View file

@ -0,0 +1,7 @@
---
layout: base
title: Posts
permalink: /posts/
---
{% include "partials/posts-list.njk" %}