Code Cleanup™

This commit is contained in:
2024-02-11 11:16:23 +01:00
parent 4b27eb76fe
commit 9fd8ddb9bd
62 changed files with 663 additions and 519 deletions

View File

@ -17,31 +17,31 @@ export const getStaticPaths = createGetStaticPaths(async () => {
return posts.map((page) => ({
props: {
page
page,
},
params: {
slug: fixLink(page.slug)
}
slug: fixLink(page.slug),
},
}));
});
const { page } = Astro.props;
const { Content } = await page.render();
const {page} = Astro.props;
const {Content} = await page.render();
---
<PageLayout title={page.data.title}>
<article>
{page.data.german && (
<LanguageWarning />
<LanguageWarning/>
)}
<h1 class="text-left">{page.data.title}</h1>
<Content />
<Content/>
</article>
</PageLayout>
<style is:global>
article {
>* {
> * {
all: revert;
}