import Link from 'next/link'; import Layout from '../../components/layout'; import date from '../../lib/date'; import NotesInfo from '../../public/notes.json'; function NoteEntry(props: { path: string, note: { title: string, mtime: string } }) { return ( {props.note.title} {props.note.mtime && date.toRelativeDate(new Date(props.note.mtime))} ); } function NotesPage() { const notes = Object.entries(NotesInfo); return ( {!notes || notes.length === 0 && <>No notes found || {notes.map(([slug, note]: any, i: number) => { return })}
}
) } export default NotesPage;