Correct date gen. for /notes

This commit is contained in:
paul committed 2025-09-16 17:42:55 -04:00
1 parent d3fcb015ab
commit 9636d3b70e
3 files changed
+18 -19

No files matched your search

+1 -18
View File
@@ -1,22 +1,5 @@
import Link from 'next/link';
import { toRelativeDate } from '../lib/date';
import NotesInfo from '../../../public/notes.json';
function NoteEntry({ note }: { note: { title: string, mtime: string, slug: string } }) {
return (
<tr>
<td style={{ flex: '1 0 50%' }}>
<Link href={`/notes/${note.slug}`}>
{note.title}
</Link>
</td>
<td style={{ fontStyle: 'italic' }}>
{note.mtime && toRelativeDate(note.mtime)}
</td>
</tr>
);
}
import { NoteEntry } from '../components/note-entry';
function NotesPage() {
const notes = Object.entries(NotesInfo)