diff --git a/components/_fuzzy.tsx b/components/_fuzzy.tsx
index 2a55b95..080ccee 100644
--- a/components/_fuzzy.tsx
+++ b/components/_fuzzy.tsx
@@ -43,17 +43,11 @@ export default class Fuzzy {
showSearchResults(): void {
let searchValue: string = this.searchValue.toLowerCase();
searchValue = searchValue.trimStart().trimEnd();
- if (
- (this.maxResults !== undefined && searchValue === '') ||
- searchValue === '?' ||
- searchValue === 'help') {
+ if (this.maxResults !== undefined && searchValue === ''){
this.setResultsValue(
<>
-
Help
- Enter a page or directory name. If do not know any, clear the search field to list everything.
- Using the Enter
key would take you to the first page in list, if the list is not empty.
- Alternatively, use the Up
and Down
arrow keys to select the page you want and use the Enter
key.
- Use Backspace
to go back to the search.
+ Search PaulW.XYZ
+ Enter a page or directory name in the search bar above.
>
)
return;
diff --git a/pages/resources.tsx b/pages/resources.tsx
index 9479b24..6e51272 100644
--- a/pages/resources.tsx
+++ b/pages/resources.tsx
@@ -1,5 +1,6 @@
import React, { ReactElement } from 'react';
import Layout from '../components/layout';
+import style from '../styles/lists.module.css';
type listItem = {
children?: listItem[] | string[];
@@ -87,17 +88,17 @@ function mapChild(obj: listItem | string, level: number) {
if (typeof obj === 'string') {
if (obj === '')
return <>>
- return {obj}
+ return {obj}
}
if (obj.title === '')
return <>>
if (obj.url)
- return {obj.title}
+ return {obj.title}
if (!obj.children)
- return {obj.title}
+ return {obj.title}
let title: ReactElement;
@@ -110,9 +111,9 @@ function mapChild(obj: listItem | string, level: number) {
<>
{title}
{obj.description ? {obj.description}
: <>>}
-
+
{obj.children.map(l => mapChild(l, level + 1))}
-
+
>
);
}
@@ -121,7 +122,7 @@ function Resources() {
return (
-
+ {list.map(l => mapChild(l, 0))}
);
}