prepare for new next/link behavior

see new-next-link branch
This commit is contained in:
jake committed 2022-04-28 12:32:50 -04:00
1 parent ad1d1bbce1
commit e1da53a1fe
9 files changed
+13 -16

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ export const getStaticProps: GetStaticProps = async () => {
const notes = await getAllNotes();
const notesByYear: NotesListProps["notesByYear"] = {};
notes.map((note) => {
notes.forEach((note) => {
const year = new Date(note.date).getUTCFullYear();
(notesByYear[year] || (notesByYear[year] = [])).push(note);
});