Add new links, fix title-gen edge case

This commit is contained in:
2024-10-10 00:51:55 -04:00
parent b442413e32
commit ff9582c630
6 changed files with 15 additions and 7 deletions
+2 -2
View File
@@ -7,12 +7,12 @@ import RecentPosts from '../components/recent-posts';
import RootInfo from '../public/home.json';
function Nav() {
const nav = RootInfo;
const nav = Object.entries(RootInfo);
return (
<div className='block'>
<h2>Navigation</h2>
{
Object.entries(nav).map(([slug, info], i) => {
nav.map(([slug, info], i) => {
return <Link key={i} href={slug} className='button green'>{info.title}</Link>
})
}