From ea69050587407022a02011e18874c9bcdfe779bd Mon Sep 17 00:00:00 2001
From: jackyzha0 <j.zhao2k19@gmail.com>
Date: Sun, 18 Jul 2021 15:54:00 +0000
Subject: [PATCH] add base pages
---
layouts/partials/graph.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/graph.html b/layouts/partials/graph.html
index ea9cf1a..c315b8f 100644
--- a/layouts/partials/graph.html
+++ b/layouts/partials/graph.html
@@ -23,7 +23,7 @@
}
const color = (d) => {
- if (d.id === curPage) {
+ if (d.id === curPage || (d.id === "/" && curPage === "")) {
return "var(--g-node-active)"
}
@@ -64,7 +64,7 @@
.on("end", enableDrag ? dragended : noop);
}
- const height = 400
+ const height = 250
const width = document.getElementById("graph-container").offsetWidth
const simulation = d3.forceSimulation(data.nodes)
--
Gitblit v1.10.0