Fix home page list formatting

Signed-off-by: Paul W. <lambdapaul@protonmail.com>
This commit is contained in:
Paul W. 2024-03-09 23:34:45 -05:00
parent f14b8c06e1
commit 6bfb3f3352
No known key found for this signature in database
GPG Key ID: 0023B93C0FF1E1D4
2 changed files with 3 additions and 1 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -4,8 +4,9 @@ import NotesInfo from '../public/notes.json';
function RecentNotes() { function RecentNotes() {
const notes = Object.entries(NotesInfo).reverse(); const notes = Object.entries(NotesInfo).reverse();
return ( return (
<ul className='block'> <div className='block'>
<h2>Recent Notes</h2> <h2>Recent Notes</h2>
<ul>
{notes?.slice(0, 5) {notes?.slice(0, 5)
.map(([slug, note]: any, i: number) => { .map(([slug, note]: any, i: number) => {
return ( return (
@ -25,6 +26,7 @@ function RecentNotes() {
<Link href='/notes'>More...</Link> <Link href='/notes'>More...</Link>
} }
</ul> </ul>
</div>
); );
} }