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:
@ -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"),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user