1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 14:06:40 -04:00

refactor component/page function returns

This commit is contained in:
2022-05-25 09:30:11 -04:00
parent ff96ccae44
commit 1e1ecd89ea
31 changed files with 2347 additions and 2281 deletions

View File

@ -4,21 +4,23 @@ import NotesList, { NotesListProps } from "../../components/NotesList";
import { getAllNotes } from "../../lib/helpers/parse-notes";
import type { GetStaticProps } from "next";
const Notes = ({ notesByYear }: NotesListProps) => (
<>
<NextSeo
title="Notes"
description="Recent posts by Jake Jarvis."
openGraph={{
title: "Notes",
}}
/>
const Notes = ({ notesByYear }: NotesListProps) => {
return (
<>
<NextSeo
title="Notes"
description="Recent posts by Jake Jarvis."
openGraph={{
title: "Notes",
}}
/>
<Content>
<NotesList notesByYear={notesByYear} />
</Content>
</>
);
<Content>
<NotesList notesByYear={notesByYear} />
</Content>
</>
);
};
export const getStaticProps: GetStaticProps = async () => {
// parse the year of each note and group them together