You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<h3>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 $.Site.Data.linkIndex.index.backlinks $curPage}}
|
|
|
|
{{if $inbound}}
|
|
|
|
{{- range $inbound -}}
|
|
|
|
{{$src := index . "source"}}
|
|
|
|
{{$src = replace $src " " "-"}}
|
|
|
|
{{$src = replace $src `\` ""}}
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a href="../{{$src | safeHTML}}">{{index . "source"}}</a>
|
|
|
|
</li>
|
|
|
|
{{- end -}}
|
|
|
|
{{else}}
|
|
|
|
<li>
|
|
|
|
No backlinks found
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|