working with the content folder

This commit is contained in:
Al Murad Uzzaman
2024-05-18 17:08:18 +06:00
parent 8c1ab27945
commit 76f1b5b6c1
38 changed files with 90 additions and 25 deletions
+3 -1
View File
@@ -17,9 +17,11 @@ export function getStaticPaths() {
const { lang } = Astro.params;
const about: any = await getListPage(
"about" as ContentCollectionKey,
lang as keyof ContentEntryMap,
lang as keyof ContentEntryMap
);
console.log(about);
const { Content } = await about[0].render();
const { title, description, meta_title, image } = about[0].data;
---