import Navbar, { NavbarItem } from '../components/navbar'; import Chapters, { chapter } from '../components/chapters'; import Seperator from '../components/seperator'; import { getStaticProps as getBlogPage, ArticleMeta, RenderedArticle } from './post/[id]'; var posts = ["index", "index", "index"]; export default function Home(props: { posts: Array<{ props: { content: string, meta: ArticleMeta } }> }) { return

{props.posts[0].props.meta.title}

{ return { children: post.props.meta.chapters, name: post.props.meta.title, } as chapter }) ]}/>
{ props.posts.map((post, index) => { return <> { index != 0 &&

{post.props.meta.title}

} { index + 1 != props.posts.length && } }) }
} export function getStaticProps() { var postsContent = []; posts.forEach(id => { postsContent.push(getBlogPage({ params: { id } })); }) var staticProps = { props: { posts: postsContent } }; console.log(staticProps) return staticProps }