mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-19 06:33:33 +09:00
languageSwithcher component added
This commit is contained in:
@@ -19,9 +19,10 @@ export function getStaticPaths() {
|
||||
}
|
||||
const { lang } = Astro.params;
|
||||
const BLOG_FOLDER = "blog";
|
||||
// const postIndex = await getListPage(BLOG_FOLDER, lang as keyof ContentEntryMap);
|
||||
const postIndex: any
|
||||
= await getListPage(BLOG_FOLDER, lang as keyof ContentEntryMap);
|
||||
const postIndex: any = await getListPage(
|
||||
BLOG_FOLDER,
|
||||
lang as keyof ContentEntryMap
|
||||
);
|
||||
const langCollection: keyof ContentEntryMap = lang as keyof ContentEntryMap;
|
||||
const posts = await getSinglePage(BLOG_FOLDER, lang as keyof ContentEntryMap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user