refactor: use markdown layouts

This commit is contained in:
2024-04-06 19:11:06 +02:00
parent 6a5d1fa849
commit 5ea9e2bc20
12 changed files with 148 additions and 47 deletions

View File

@@ -1,6 +1,5 @@
---
import { getCollection } from "astro:content";
import Post from "@layouts/Post.astro";
import { getLocale } from "astro-i18n-aut";
import { filterCollection, parseSlug } from "@i18n/utils";
@@ -32,6 +31,4 @@ if (!page) {
const { Content } = await page.render();
---
<Post {...page} backlink="/blog">
<Content />
</Post>
<Content />