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

clean up styled JSX of colorful homepage links

This commit is contained in:
2022-01-01 13:00:26 -05:00
parent c420967b4c
commit 3ee8ab4423
8 changed files with 62 additions and 78 deletions

View File

@ -6,12 +6,12 @@ import List from "../../components/notes/List";
import { getAllNotes } from "../../lib/parse-notes";
import type { GetStaticProps } from "next";
export default function Notes({ allNotes }) {
export default function Notes({ notesByYear }) {
return (
<>
<Layout>
<Container title="Notes" description="Recent posts by Jake Jarvis.">
<List allNotes={allNotes} />
<List notesByYear={notesByYear} />
</Container>
</Layout>
</>
@ -26,7 +26,7 @@ export const getStaticProps: GetStaticProps = async () => {
return {
props: {
allNotes: groupBy(allNotes, "year"),
notesByYear: groupBy(allNotes, "year"),
},
};
};