Merge branch 'hugo' into fix-popover
| | |
| | | async function drawGraph( |
| | | url, |
| | | baseUrl, |
| | | pathColors, |
| | | depth, |
| | |
| | | const container = document.getElementById('graph-container') |
| | | |
| | | const { index, links, content } = await fetchData |
| | | const curPage = url.replace(baseUrl, '') |
| | | const curPage = window.location.href.replace(baseUrl, "").replace(/\/$/g, "") |
| | | |
| | | const parseIdsFromLinks = (links) => [ |
| | | ...new Set(links.flatMap((link) => [link.source, link.target])), |
| | |
| | | import { init } from '{{$router.Permalink}}'; |
| | | init(() => { |
| | | drawGraph( |
| | | {{strings.TrimRight "/" .Page.Permalink}}, |
| | | {{strings.TrimRight "/" .Site.BaseURL}}, |
| | | {{$.Site.Data.graphConfig.paths}}, |
| | | {{$.Site.Data.graphConfig.depth}}, |