First Release v1.0.0
Deploy to Azure Static Web Apps / build_and_deploy (push) Waiting to run
Deploy to Azure Static Web Apps / close_pull_request (push) Waiting to run

This commit is contained in:
Daniel Krähenbühl
2026-06-16 21:52:55 +02:00
commit 4f304b8ed4
297 changed files with 32673 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
---
import BlogLayout from '@/layouts/BlogLayout.astro';
import { getCollection, render } from 'astro:content';
export async function getStaticPaths() {
const posts = await getCollection('blog', ({ data }) => {
return data.locale === 'en' && (import.meta.env.PROD ? data.draft !== true : true);
});
return posts.map((post) => ({
params: { slug: post.id.replace('en/', '') },
props: { post },
}));
}
const { post } = Astro.props;
const { Content } = await render(post);
---
<BlogLayout
title={post.data.title}
description={post.data.description}
publishedAt={post.data.publishedAt}
updatedAt={post.data.updatedAt}
author={post.data.author}
image={post.data.image}
imageAlt={post.data.imageAlt}
svgSlug={post.data.svgSlug}
tags={post.data.tags}
slug={post.id}
>
<Content />
</BlogLayout>
+5
View File
@@ -0,0 +1,5 @@
---
import BlogIndexPage from '@/components/landing/BlogIndexPage.astro';
---
<BlogIndexPage locale="de" />