restructure

This commit is contained in:
Luca Junge 2024-03-21 11:59:37 +01:00
parent 546d4bc4c7
commit eeb1d1bc70
16 changed files with 141 additions and 55 deletions

23
src/blog/blog.njk Normal file
View 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 -%}