post page and post list builds
This commit is contained in:
parent
5fd7846d96
commit
66d04c10e8
3 changed files with 22 additions and 0 deletions
0
src/includes/partials/posts-item.njk
Normal file
0
src/includes/partials/posts-item.njk
Normal file
15
src/includes/partials/posts-list.njk
Normal file
15
src/includes/partials/posts-list.njk
Normal 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
7
src/pages/posts.njk
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
layout: base
|
||||
title: Posts
|
||||
permalink: /posts/
|
||||
---
|
||||
|
||||
{% include "partials/posts-list.njk" %}
|
||||
Loading…
Reference in a new issue