diff --git a/layouts/partials/backlinks.html b/layouts/partials/backlinks.html
index daee6ec77..136ebaa3e 100644
--- a/layouts/partials/backlinks.html
+++ b/layouts/partials/backlinks.html
@@ -1,20 +1,16 @@
Backlinks
- {{$url := urls.Parse .Site.BaseURL }}
- {{$host := strings.TrimRight "/" $url.Path }}
- {{$curPage := strings.TrimPrefix $host (strings.TrimRight "/" .Page.RelPermalink) }}
+ {{$curPage := strings.TrimRight "/" .Page.RelPermalink }}
{{$inbound := index $.Site.Data.linkIndex.index.backlinks $curPage}}
- {{$contentTable := $.Site.Data.contentIndex}}
{{if $inbound}}
- {{$cleanedInbound := apply (apply $inbound "index" "." "source") "replace" "." " " "-"}}
- {{- range $cleanedInbound | uniq -}}
- -
- {{index (index $contentTable .) "title"}}
-
+ {{- range $inbound -}}
+ -
+ {{ replace (index . "source") "/notes/" "" }}
+
{{- end -}}
{{else}}
-
No backlinks found
{{end}}
-
+
\ No newline at end of file
diff --git a/layouts/partials/graph.html b/layouts/partials/graph.html
index 10243bbca..05f0421b1 100644
--- a/layouts/partials/graph.html
+++ b/layouts/partials/graph.html
@@ -201,7 +201,7 @@
const labels = graphNode.append("text")
.attr("dx", 12)
.attr("dy", ".35em")
- .text((d) => content[decodeURI(d.id).replace(/\s+/g, '-')]?.title || "Untitled")
+ .text((d) => d.id.replace(/(\/notes\/)/g, '').replace(/\s+/g, '-')) //content[decodeURI(d.id).replace(/\s+/g, '-')]?.title || "Untitled")
.style("opacity", 0)
.style("pointer-events", "none")
.call(drag(simulation));