From cb38667c1df7d752a1a9ef45505a7e106ff03ef8 Mon Sep 17 00:00:00 2001
From: jackyzha0 <j.zhao2k19@gmail.com>
Date: Fri, 27 Aug 2021 18:08:18 +0000
Subject: [PATCH] Merge branch 'hugo' of https://github.com/jackyzha0/quartz into hugo
---
layouts/partials/graph.html | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/graph.html b/layouts/partials/graph.html
index 81ea3f4..0e9684d 100644
--- a/layouts/partials/graph.html
+++ b/layouts/partials/graph.html
@@ -1,4 +1,5 @@
<script src="https://cdn.jsdelivr.net/npm/d3@6"></script>
+<h3>Interactive Graph</h3>
<div id="graph-container"></div>
<style>
:root {
@@ -125,7 +126,7 @@
.attr("fill", color)
.style("cursor", "pointer")
.on("click", (_, d) => {
- window.location.href = d.id;
+ window.location.href = {{.Site.BaseURL}} + d.id;
})
.on("mouseover", function (_, d) {
d3.selectAll(".node")
--
Gitblit v1.10.0