From 6fbfa7170b17e062abd4c26e4b55a3934fb4ff1c Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 26 Dec 2021 05:09:15 +0000
Subject: [PATCH] various font and colour fixes
---
layouts/partials/graph.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/graph.html b/layouts/partials/graph.html
index a963743..7dcd536 100644
--- a/layouts/partials/graph.html
+++ b/layouts/partials/graph.html
@@ -185,7 +185,7 @@
const labels = graphNode.append("text")
.attr("dx", 12)
.attr("dy", ".35em")
- .text((d) => content[d.id.replace("%20", "-")].title)
+ .text((d) => content[d.id.replace("%20", "-")]?.title || "Untitled")
.style("opacity", 0)
.style("pointer-events", "none")
.call(drag(simulation));
--
Gitblit v1.10.0