main
 1---
 2import type { GetStaticPaths } from "astro";
 3import { getIntlayer } from "intlayer";
 4
 5import { SITE_CONFIG } from "@/config.ts";
 6import BaseLayout from "@/layouts/BaseLayout.astro";
 7import { loadLocaleContent } from "@/utils/content.ts";
 8import { getLocaleRouteParam } from "@/utils/url.ts";
 9import "@/styles/article/index.scss";
10
11export const getStaticPaths: GetStaticPaths = () =>
12  SITE_CONFIG.locales.map((locale) => ({
13    params: { locale: getLocaleRouteParam(locale) },
14  }));
15
16const locale = Astro.currentLocale;
17const globalI18n = getIntlayer("global", locale);
18
19const { Content: Article } = await loadLocaleContent("about", locale);
20---
21
22<BaseLayout title={globalI18n.about} ogType="article">
23  <article>
24    <h1>{globalI18n.about}</h1>
25    <Article />
26  </article>
27</BaseLayout>