Add programming-resources; swi->generic Nintendo;

Remove custom html from markdown, clean-up UI (again)

Signed-off-by: Paul W. <lambdapaul@protonmail.com>
This commit is contained in:
2024-02-13 18:01:07 -05:00
parent 366f09864f
commit fece0bc86c
28 changed files with 392 additions and 304 deletions
+7 -5
View File
@@ -9,11 +9,13 @@ function traverseMap(head: Site, cwd = '', depth = 0) {
let elements = [];
for (const [slug, info] of Object.entries(head.subpages)) {
const path = `${cwd}/${slug}`;
const children = (<><ul> {traverseMap(info, path, depth + 1)}</ul></>);
const children = (<><dl style={{marginLeft: '3rem'}}> {traverseMap(info, path, depth + 1)}</dl></>);
elements.push(<>
<li>
<Link className='button' href={path}>{info.title}</Link> {children}
</li>
<>
<dt>{info.title}</dt>
<dd><Link href={path}>{path}</Link></dd>
{children}
</>
</>);
}
return elements;
@@ -23,7 +25,7 @@ function SiteMapPage() {
return <Layout>
<ul>{traverseMap(SiteMap)}</ul>
<dl>{traverseMap(SiteMap)}</dl>
</Layout>;
}