This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user