mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-04 12:00:02 +00:00
graph fix
This commit is contained in:
parent
8fcf7255d5
commit
dcdb496dd3
@ -36,7 +36,9 @@ function getGraph(data) {
|
||||
let stemURLs = {};
|
||||
let homeAlias = "/";
|
||||
(data.collections.note || []).forEach((v, idx) => {
|
||||
let fpath = v.filePathStem.replace("/notes/", "");
|
||||
let fpath = v.data["dg-path"]
|
||||
? v.data["dg-path"].split(".md")[0]
|
||||
: v.filePathStem.replace("/notes/", "");
|
||||
let parts = fpath.split("/");
|
||||
let group = "none";
|
||||
if (parts.length >= 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user