Add EsLint

This commit is contained in:
2023-12-23 15:36:22 +01:00
parent 5a5cce199b
commit 8fcab610fb
22 changed files with 2215 additions and 468 deletions

View File

@ -1,6 +1,6 @@
---
import {getCollection} from 'astro:content'
import {astroI18n, createGetStaticPaths, t} from "astro-i18n";
import {getCollection} from "astro:content";
import {astroI18n, createGetStaticPaths} from "astro-i18n";
import PageLayout from "../layouts/PageLayout.astro";
import LanguageWarning from "../components/LanguageWarning.astro";
@ -22,14 +22,13 @@ export const getStaticPaths = createGetStaticPaths(async () => {
params: {
slug: fixLink(page.slug)
}
}) )
})
}));
});
const { page } = Astro.props;
const { Content } = await page.render();
---
<PageLayout title={page.data.title}>
<article>
{page.data.german && (