mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 11:18:30 -04:00
26 lines
588 B
TypeScript
26 lines
588 B
TypeScript
import Layout from "../../components/Layout";
|
|
import Container from "../../components/Container";
|
|
import List from "../../components/notes/List";
|
|
import { getAllNotes } from "../../lib/parse-notes";
|
|
import type { GetStaticProps } from "next";
|
|
|
|
const Notes = ({ notes }) => (
|
|
<Layout>
|
|
<Container title="Notes" description="Recent posts by Jake Jarvis.">
|
|
<List notes={notes} />
|
|
</Container>
|
|
</Layout>
|
|
);
|
|
|
|
export const getStaticProps: GetStaticProps = async () => {
|
|
const notes = getAllNotes();
|
|
|
|
return {
|
|
props: {
|
|
notes,
|
|
},
|
|
};
|
|
};
|
|
|
|
export default Notes;
|