Files
max-richter.dev/src/pages/resources/index.astro
Max Richter 190edd0915
Some checks failed
Deploy to SFTP Server / build (push) Failing after 8m37s
fix: some stuff
2025-10-24 15:00:08 +02:00

19 lines
454 B
Plaintext

---
import Layout from "@layouts/Layout.astro";
import HeroCard from "@components/HeroCard.astro";
import { resources } from "./resources.ts";
import {useTranslations} from "@i18n/utils";
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)}}} />
)}
</Layout>