restructure
This commit is contained in:
parent
546d4bc4c7
commit
eeb1d1bc70
16 changed files with 141 additions and 55 deletions
23
src/blog/blog.njk
Normal file
23
src/blog/blog.njk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
title: My blog posts
|
||||
layout: overview.njk
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
|
||||
{%- for post in collections.post -%}
|
||||
<article>
|
||||
<header>
|
||||
<h1>
|
||||
<a href="{{post.url}}">{{post.data.title}}</a>
|
||||
</h1>
|
||||
|
||||
<time>{{post.date | formatDate }}</time>
|
||||
</header>
|
||||
|
||||
<p>{{post.templateContent | createExcerpt}}</p>
|
||||
|
||||
<a class="button" href="{{post.url}}">
|
||||
Weiterlesen
|
||||
</a>
|
||||
</article>
|
||||
{%- endfor -%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue