This commit is contained in:
Max Richter
2025-07-20 13:37:29 +02:00
parent b32ca7d65e
commit 666b618a73
15 changed files with 375 additions and 67 deletions

View File

@ -16,11 +16,10 @@ const { frontmatter, headings } = Astro.props;
const t = useTranslations(Astro.url);
const { title, url, date: dateString, links, toc, cover } = frontmatter;
const collection = url?.split("/")[2];
const date = new Date(dateString);
const path = useTranslatedPath(Astro.url);
//@ts-ignore
const backlinkContent = t(`nav.${collection}`).toLowerCase();
const date = new Date(dateString);
const path = useTranslatedPath(Astro.url);
---
<Layout title={title} image={cover}>