From fda481fbb91fee6fc9e99c56c2cf80ff8835a946 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 15 Mar 2022 08:12:08 +0000
Subject: [PATCH] fix: bump hugo-obsidian version to account for contentIndex paths on windows
---
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