languageSwithcher component added

This commit is contained in:
Al Murad Uzzaman
2024-05-16 12:09:13 +06:00
parent b92a4a4c6a
commit 97d6f22dcb
3 changed files with 49 additions and 50 deletions
+4 -3
View File
@@ -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);