refactor: use markdown layouts
All checks were successful
Deploy to SFTP Server / build (push) Successful in 6m11s

This commit is contained in:
2024-04-06 19:11:06 +02:00
parent 613ab7aef9
commit 82eb0657e2
12 changed files with 178 additions and 49 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 />

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="/photos">
<Content />
</Post>
<Content />

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="/projects">
<Content />
</Post>
<Content />