added first article

This commit is contained in:
Luca 2024-10-18 13:57:12 +02:00
parent 16fe9bd093
commit 41ef0be7f9
19 changed files with 641 additions and 29 deletions

View file

@ -1,6 +1,23 @@
---
layout: layouts/base.njk
layout: layouts/home.njk
permalink: /index.html
---
Hello Homepage
<div class="recent-posts-container">
{% for post in collections.posts %}
<div class="highlight-card">
<a href="{{ post.url }}">
<div class="highlight-card-header">
<span class="content-type {{post.data.type}}"
>{{post.data.type | capitalize }}</span
>
<span>{{ post.date | date }}</span>
</div>
<img src="{% generateThumbnail post.data.title %}" />
<h2 class="highlight-card-title">{{post.data.title}}</h2>
<p class="highlight-card-excerpt">{{ post.page.excerpt }}</p>
<button class="highlight-card-button">Read more</button>
</a>
</div>
{% endfor %}
</div>