mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-19 22:53:36 +09:00
working with the content folder
This commit is contained in:
@@ -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;
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user