fix: some stuff
Some checks failed
Deploy to SFTP Server / build (push) Failing after 8m37s

This commit is contained in:
Max Richter
2025-10-24 15:00:08 +02:00
parent 5c1df62fd2
commit 190edd0915
3 changed files with 8 additions and 12 deletions

View File

@@ -21,5 +21,5 @@ const type = resource?.content?._type ?? "unknown";
<details >
<summary class="flex"><span class="i-tabler-code w-6 h-6 inline"/></summary>
<Code code={JSON.stringify(resource, null, 2)} lang="json" theme="dark-plus" />
<Code code={JSON.stringify(resource??"{}", null, 2)} lang="json" theme="dark-plus" />
</details>

View File

@@ -8,5 +8,11 @@ const t = useTranslations(Astro.url);
---
<Layout title="Max Richter">
{resources.map((resource) => <HeroCard post={{...resource, body: t(`${resource.id}.description`), data: {cover:{src:resource.cover}, title: t(resource.id)}}} />)}
{resources.map((resource) =>
<HeroCard post={{
...resource,
body: t(`${resource.id}.description`),
data: {
cover:{src:resource.cover}, title: t(resource.id)}}} />
)}
</Layout>

View File

@@ -6,16 +6,6 @@ export type ResourceType = {
cover: string;
};
// const wiki = {
// id: "wiki",
// collection,
// body: "My knowledge base",
// data: {
// title: "Wiki",
// icon: "🧠",
// },
// };
const articles = {
id: "articles",
collection,