diff --git a/content/notes/config.md b/content/notes/config.md index 6f5ef74..a5c194f 100644 --- a/content/notes/config.md +++ b/content/notes/config.md @@ -29,6 +29,7 @@ To customize the Interactive Graph view, you can poke around `data/graphConfig.y enableLegend: false # automatically generate a legend enableDrag: true # allow dragging nodes in the graph enableZoom: true # allow zooming and panning the graph +depth: -1 # how many neighbours of the current node to show (-1 is all nodes) paths: # colour specific nodes path off of their path - /moc: "#4388cc" ``` diff --git a/layouts/partials/backlinks.html b/layouts/partials/backlinks.html index 9020bf7..daee6ec 100644 --- a/layouts/partials/backlinks.html +++ b/layouts/partials/backlinks.html @@ -6,12 +6,10 @@ {{$inbound := index $.Site.Data.linkIndex.index.backlinks $curPage}} {{$contentTable := $.Site.Data.contentIndex}} {{if $inbound}} - {{- range $inbound -}} - {{$src := index . "source"}} - {{$src = replace $src " " "-"}} - + {{$cleanedInbound := apply (apply $inbound "index" "." "source") "replace" "." " " "-"}} + {{- range $cleanedInbound | uniq -}}