Add new links, fix title-gen edge case
This commit is contained in:
@@ -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` || '';
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user