import Link from 'next/link'; import Layout from '../../components/layout'; import { getNotesMeta, NoteMeta } from '../../util/slug'; function NotesPage({ notesMeta }: { notesMeta: NoteMeta[] }) { return (
{notesMeta && notesMeta.map((note: NoteMeta, i) => { return
{note.title}
})}
) } export async function getStaticProps() { return { props: { notesMeta: getNotesMeta() } }; } export default NotesPage;