From ccec4b30e7146bd51b742832e1d1c04af617f1f2 Mon Sep 17 00:00:00 2001
From: jackyzha0 <j.zhao2k19@gmail.com>
Date: Thu, 22 Jul 2021 19:27:38 +0000
Subject: [PATCH] config fixes
---
layouts/partials/graph.html | 2 +-
config.toml | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/config.toml b/config.toml
index 884b5b1..dabe513 100644
--- a/config.toml
+++ b/config.toml
@@ -2,6 +2,8 @@
languageCode = "en-us"
googleAnalytics = "G-XYFD95KB4J"
pygmentsUseClasses = true
+relativeURLs = true
+disablePathToLower = true
ignoreFiles = [
"/content/templates/*",
"/content/private/*",
diff --git a/layouts/partials/graph.html b/layouts/partials/graph.html
index d5a995b..0e9684d 100644
--- a/layouts/partials/graph.html
+++ b/layouts/partials/graph.html
@@ -126,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