update to v5 + remove unmaintained i18n lib

This commit is contained in:
nico 2024-12-27 08:55:12 +01:00
parent 59687fbade
commit 99ef7634e3
19 changed files with 38 additions and 103 deletions

View file

@ -1,11 +1,11 @@
---
// import { renderContent } from "astro-i18n";
import { render } from "astro:content";
import MetaDate from "./MetaDate.astro";
import TOC from "./TOC.astro";
const { content } = Astro.props;
const { Content, headings } = await content.render();
// const { html, headings } = await renderContent(Astro, content);
const { Content, headings } = await render(content);
const toc = headings.map((heading) => {
return heading;