Add new links, fix title-gen edge case

This commit is contained in:
2024-10-10 00:51:55 -04:00
parent 910f531207
commit f9021b7712
6 changed files with 15 additions and 7 deletions

View File

@@ -4,7 +4,6 @@ import Pages from '../public/external.json';
function QuickLinks() {
return (
<div className='block'>
<h2>Quick Links</h2>
{
Object.entries(Pages).map(([title, link], i) => {
const extern = link.match(/^http/) && `blue extern` || '';

View File

@@ -30,6 +30,8 @@ function Title() {
if (pagePath !== '/') {
const subPaths = pagePath.split('?')[0].split('#')[0].split('/');
for (const p of subPaths.slice(1, subPaths.length)) {
if (!p)
continue;
splitPath.push({ name: currRoot[p].title, path: p });
if (currRoot === undefined