astro 2.4.4 breaks i18n, reverted to 2.4.3

This commit is contained in:
Nico 2023-05-17 17:55:47 +02:00
parent c3ce3f9e38
commit 4ec6b01162
8 changed files with 38 additions and 37 deletions

View file

@ -9,9 +9,9 @@ const toc = headings.map((heading) => {
return heading;
});
if (content.data.code) {
import "../styles/vendor/one-dark-pro.css";
}
// if (content.data.code) {
// import "../styles/vendor/one-dark-pro.css";
// }
---
<div class="sidebar region">

View file

@ -1,5 +1,5 @@
---
import { l, t, astroI18n } from "astro-i18n";
import { astroI18n } from "astro-i18n";
astroI18n.init(Astro);
import { getCollection } from "astro:content";
@ -21,5 +21,6 @@ const { article } = Astro.props;
---
<BaseLayout pageTitle={article.data.title}>
{article.data.lang}
<EditorialContent content={article} />
</BaseLayout>

View file

@ -0,0 +1,9 @@
---
import Page from "../../articles/[...slug].astro"
export { getStaticPaths } from "../../articles/[...slug].astro"
const { props } = Astro
---
<Page {...props} />

View file

@ -1,9 +0,0 @@
---
import Page from "../../articles/[slug].astro"
export { getStaticPaths } from "../../articles/[slug].astro"
const { props } = Astro
---
<Page {...props} />