From ccec4b30e7146bd51b742832e1d1c04af617f1f2 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Thu, 22 Jul 2021 15:27:38 -0400 Subject: [PATCH] config fixes --- config.toml | 2 ++ layouts/partials/graph.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 884b5b1..dabe513 100644 --- a/config.toml +++ b/config.toml @@ -2,6 +2,8 @@ baseURL = "https://quartz.jzhao.xyz/" 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")