update to v5 + remove unmaintained i18n lib
This commit is contained in:
parent
59687fbade
commit
99ef7634e3
19 changed files with 38 additions and 103 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue