From 67f7658907de6dc6b5a571569f6cbc35338e3770 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Mon, 25 Dec 2023 19:27:15 -0600 Subject: [PATCH] update imports, classname and remove graphdata from note index --- pages/note/index.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pages/note/index.js b/pages/note/index.js index 6c768df..bd9b918 100644 --- a/pages/note/index.js +++ b/pages/note/index.js @@ -1,4 +1,4 @@ -import Layout from "../components/Layout"; +import Layout from "../../components/Layout"; import { getSinglePost, getDirectoryData, @@ -6,16 +6,16 @@ import { getFlattenArray, getLocalGraphData, constructGraphData -} from "../lib/utils"; -import FolderTree from "../components/FolderTree"; -import MDContent from "../components/MDContent"; +} from "../../lib/utils"; +import FolderTree from "../../components/FolderTree"; +import MDContent from "../../components/MDContent"; // This trick is to dynamically load component that interact with window object (browser only) export default function Home({ content, tree, flattenNodes, backLinks }) { return ( -
+
@@ -35,13 +35,11 @@ export function getStaticProps() { const internalLinks = listOfEdges.map(anEdge => nodes.find(aNode => aNode.slug === anEdge.source)).filter(element => element !== undefined) const backLinks = [...new Set(internalLinks)] - const graphData = getLocalGraphData("index"); return { props: { content: contentData.data, tree: tree, flattenNodes: flattenNodes, - graphData: graphData, backLinks: backLinks }, };