30 lines
698 B
Plaintext
30 lines
698 B
Plaintext
---
|
|
import { t, l } from "astro-i18n";
|
|
|
|
import "../../styles/style.css";
|
|
|
|
import BaseLayout from "../../layouts/BaseLayout.astro";
|
|
import ContentPost from "../../components/ContentPost.astro";
|
|
|
|
const allPosts = await Astro.glob("./*.mdx");
|
|
|
|
console.log(t("index.articles.pageName", { cool: "yes" }));
|
|
|
|
const pageTitle = t("index.articles.pageName");
|
|
const titleColor = "hotpink";
|
|
---
|
|
|
|
<BaseLayout pageTitle={pageTitle} titleColor={titleColor}>
|
|
<h2>{t("index.articles.pageName", { cool: "yes" }, "fr")}</h2>
|
|
<p>{t("index.articles.trad")}</p>
|
|
<ul>
|
|
{
|
|
allPosts.map((post) => (
|
|
<li>
|
|
<ContentPost url={post.url} title={post.frontmatter.title} />
|
|
</li>
|
|
))
|
|
}
|
|
</ul>
|
|
</BaseLayout>
|