Fix active node on graph
This commit is contained in:
parent
a1d03a044e
commit
7a80cc0510
@ -1,5 +1,5 @@
|
||||
async function drawGraph(
|
||||
url,
|
||||
_url,
|
||||
baseUrl,
|
||||
pathColors,
|
||||
depth,
|
||||
@ -10,7 +10,7 @@ async function drawGraph(
|
||||
const container = document.getElementById('graph-container')
|
||||
|
||||
const { index, links, content } = await fetchData
|
||||
const curPage = url.replace(baseUrl, '')
|
||||
const curPage = window.location.href.replace(baseUrl, '').slice(0, -1)
|
||||
|
||||
const parseIdsFromLinks = (links) => [
|
||||
...new Set(links.flatMap((link) => [link.source, link.target])),
|
||||
|
@ -3,7 +3,7 @@ enableToc: true
|
||||
openToc: false
|
||||
enableLinkPreview: true
|
||||
enableLatex: true
|
||||
enableSPA: false
|
||||
enableSPA: true
|
||||
description:
|
||||
Host your second brain and digital garden for free. Quartz features extremely fast full-text search,
|
||||
Wikilink support, backlinks, local graph, tags, and link previews.
|
||||
|
Loading…
Reference in New Issue
Block a user