mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-25 16:14:50 +00:00
backlinks fix
This commit is contained in:
parent
618dd7055c
commit
9b427faa93
@ -1,6 +1,8 @@
|
||||
<h3>Backlinks</h3>
|
||||
<ul class="backlinks">
|
||||
{{$curPage := strings.TrimRight "/" .Page.RelPermalink }}
|
||||
{{$url := urls.Parse .Site.BaseURL }}
|
||||
{{$host := strings.TrimRight "/" $url.Path }}
|
||||
{{$curPage := strings.TrimPrefix $host (strings.TrimRight "/" .Page.RelPermalink) }}
|
||||
{{$inbound := index $.Site.Data.linkIndex.index.backlinks $curPage}}
|
||||
{{if $inbound}}
|
||||
{{- range $inbound -}}
|
||||
|
Loading…
Reference in New Issue
Block a user