From 56d2382c282431115b2964d440b790ce11f19e72 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 23 Dec 2021 22:05:27 +0000
Subject: [PATCH] fix relative link styling, change graph and backlinks to refer to name rather than path

---
 layouts/partials/backlinks.html |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/backlinks.html b/layouts/partials/backlinks.html
index 744f7e3..9020bf7 100644
--- a/layouts/partials/backlinks.html
+++ b/layouts/partials/backlinks.html
@@ -4,13 +4,14 @@
     {{$host := strings.TrimRight "/" $url.Path }}
     {{$curPage := strings.TrimPrefix $host (strings.TrimRight "/" .Page.RelPermalink) }}
     {{$inbound := index $.Site.Data.linkIndex.index.backlinks $curPage}}
+    {{$contentTable := $.Site.Data.contentIndex}}
     {{if $inbound}}
     {{- range $inbound -}}
         {{$src := index . "source"}}
         {{$src = replace $src " " "-"}}
 
         <li>
-            <a href="{{$src}}">{{index . "source"}}</a>
+            <a href="{{$src}}">{{index (index $contentTable $src) "title"}}</a>
         </li>
     {{- end -}}
     {{else}}
@@ -18,4 +19,4 @@
         No backlinks found
     </li>
     {{end}}
-</ul>
\ No newline at end of file
+</ul>

--
Gitblit v1.10.0