Fix home page list formatting
Signed-off-by: Paul W. <lambdapaul@protonmail.com>
This commit is contained in:
		@@ -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>
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user