This commit is contained in:
@@ -21,5 +21,5 @@ const type = resource?.content?._type ?? "unknown";
|
|||||||
|
|
||||||
<details >
|
<details >
|
||||||
<summary class="flex"><span class="i-tabler-code w-6 h-6 inline"/></summary>
|
<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>
|
</details>
|
||||||
|
|||||||
@@ -8,5 +8,11 @@ const t = useTranslations(Astro.url);
|
|||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="Max Richter">
|
<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>
|
</Layout>
|
||||||
|
|||||||
@@ -6,16 +6,6 @@ export type ResourceType = {
|
|||||||
cover: string;
|
cover: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
// const wiki = {
|
|
||||||
// id: "wiki",
|
|
||||||
// collection,
|
|
||||||
// body: "My knowledge base",
|
|
||||||
// data: {
|
|
||||||
// title: "Wiki",
|
|
||||||
// icon: "🧠",
|
|
||||||
// },
|
|
||||||
// };
|
|
||||||
|
|
||||||
const articles = {
|
const articles = {
|
||||||
id: "articles",
|
id: "articles",
|
||||||
collection,
|
collection,
|
||||||
|
|||||||
Reference in New Issue
Block a user