mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 13:26:22 +00:00
Fix active node on graph
This commit is contained in:
parent
6e6dd4cb0b
commit
9d3bbd6076
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
async function drawGraph(
|
async function drawGraph(
|
||||||
url,
|
_url,
|
||||||
baseUrl,
|
baseUrl,
|
||||||
pathColors,
|
pathColors,
|
||||||
depth,
|
depth,
|
||||||
|
@ -10,7 +10,7 @@ async function drawGraph(
|
||||||
const container = document.getElementById('graph-container')
|
const container = document.getElementById('graph-container')
|
||||||
|
|
||||||
const { index, links, content } = await fetchData
|
const { index, links, content } = await fetchData
|
||||||
const curPage = url.replace(baseUrl, '')
|
const curPage = window.location.href.replace(baseUrl, '').slice(0, -1)
|
||||||
|
|
||||||
const parseIdsFromLinks = (links) => [
|
const parseIdsFromLinks = (links) => [
|
||||||
...new Set(links.flatMap((link) => [link.source, link.target])),
|
...new Set(links.flatMap((link) => [link.source, link.target])),
|
||||||
|
|
|
@ -3,7 +3,7 @@ enableToc: true
|
||||||
openToc: false
|
openToc: false
|
||||||
enableLinkPreview: true
|
enableLinkPreview: true
|
||||||
enableLatex: true
|
enableLatex: true
|
||||||
enableSPA: false
|
enableSPA: true
|
||||||
description:
|
description:
|
||||||
Host your second brain and digital garden for free. Quartz features extremely fast full-text search,
|
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.
|
Wikilink support, backlinks, local graph, tags, and link previews.
|
||||||
|
|
Loading…
Reference in a new issue