From 6605b13b86c5e15bcaa2821937f97a59c4d2bbae Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 01 Apr 2022 06:15:54 +0000
Subject: [PATCH] more troubleshooting, backlinks reference private page fix

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

diff --git a/layouts/partials/backlinks.html b/layouts/partials/backlinks.html
index 166e1fd..ee6c535 100644
--- a/layouts/partials/backlinks.html
+++ b/layouts/partials/backlinks.html
@@ -9,9 +9,12 @@
     {{if $inbound}}
     {{$cleanedInbound := apply (apply $inbound "index" "." "source") "replace" "." " " "-"}}
     {{- range $cleanedInbound | uniq -}}
-        <li>
-            <a href="{{$url}}{{.}}">{{index (index $contentTable .) "title"}}</a>
-        </li>
+      {{$l := .}}
+      {{with (index $contentTable .)}}
+      <li>
+          <a href="{{$l}}">{{index (index . "title")}}</a>
+      </li>
+      {{end}}
     {{- end -}}
     {{else}}
     <li>

--
Gitblit v1.10.0