From b96c60edfc3429a2c478b2d1eb809fb9f20b4219 Mon Sep 17 00:00:00 2001
From: Claudio Yanes <me@claudio4.com>
Date: Mon, 07 Mar 2022 18:27:45 +0000
Subject: [PATCH] Merge branch 'hugo' of https://github.com/jackyzha0/quartz into jackyzha0-hugo
---
layouts/partials/backlinks.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/partials/backlinks.html b/layouts/partials/backlinks.html
index 746ebbb..166e1fd 100644
--- a/layouts/partials/backlinks.html
+++ b/layouts/partials/backlinks.html
@@ -3,14 +3,14 @@
{{$url := urls.Parse .Site.BaseURL }}
{{$host := strings.TrimRight "/" $url.Path }}
{{$curPage := strings.TrimPrefix $host (strings.TrimRight "/" .Page.RelPermalink) }}
- {{$linkIndex := getJSON "/static/linkIndex.json"}}
+ {{$linkIndex := getJSON "/assets/indices/linkIndex.json"}}
{{$inbound := index $linkIndex.index.backlinks $curPage}}
- {{$contentTable := getJSON "/static/contentIndex.json"}}
+ {{$contentTable := getJSON "/assets/indices/contentIndex.json"}}
{{if $inbound}}
{{$cleanedInbound := apply (apply $inbound "index" "." "source") "replace" "." " " "-"}}
{{- range $cleanedInbound | uniq -}}
<li>
- <a href="{{.}}">{{index (index $contentTable .) "title"}}</a>
+ <a href="{{$url}}{{.}}">{{index (index $contentTable .) "title"}}</a>
</li>
{{- end -}}
{{else}}
--
Gitblit v1.10.0