|
|
@ -1,6 +1,8 @@
|
|
|
|
<h3>Backlinks</h3>
|
|
|
|
<h3>Backlinks</h3>
|
|
|
|
<ul class="backlinks">
|
|
|
|
<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}}
|
|
|
|
{{$inbound := index $.Site.Data.linkIndex.index.backlinks $curPage}}
|
|
|
|
{{if $inbound}}
|
|
|
|
{{if $inbound}}
|
|
|
|
{{- range $inbound -}}
|
|
|
|
{{- range $inbound -}}
|
|
|
|