{{ $linkIndex := resources.Get "indices/linkIndex.json" | transform.Unmarshal }}
{{ $contentTable := resources.Get "indices/contentIndex.json" | transform.Unmarshal }}

<h3>{{ i18n "backlinks" }}</h3>
<ul class="backlinks">
    {{$url := urls.Parse .Site.BaseURL }}
    {{$host := strings.TrimRight "/" $url.Path }}
    {{$curPage := strings.TrimPrefix $host (strings.TrimRight "/" .Page.RelPermalink)}}
    {{$inbound := index $linkIndex.index.backlinks $curPage}}
    {{if $inbound}}
    {{$backlinks := dict "