From 3789df80e437f9e31560e7eed14e33d80e5ff3a0 Mon Sep 17 00:00:00 2001
From: Aiden Bai 白宇彤 <aiden.bai05@gmail.com>
Date: Tue, 03 May 2022 16:33:00 +0000
Subject: [PATCH] Merge branch 'hugo' into fix-popover

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

diff --git a/layouts/partials/backlinks.html b/layouts/partials/backlinks.html
index 15f14a4..e42351a 100644
--- a/layouts/partials/backlinks.html
+++ b/layouts/partials/backlinks.html
@@ -9,7 +9,8 @@
     {{if $inbound}}
     {{$cleanedInbound := apply (apply $inbound "index" "." "source") "replace" "." " " "-"}}
     {{- range $cleanedInbound | uniq -}}
-      {{$l := .}}
+      {{$l := printf "%s%s/" $host .}}
+      {{$l = cond (eq $l "//") "/" $l}}
       {{with (index $contentTable .)}}
       <li>
           <a href="{{$l}}">{{index (index . "title")}}</a>

--
Gitblit v1.10.0