roadmap/layouts/partials/backlinks.html

16 lines
399 B
HTML
Raw Normal View History

<h3>Backlinks</h3>
<ul class="backlinks">
2021-07-18 13:35:42 +00:00
{{$curPage := strings.TrimRight "/" .Page.RelPermalink }}
{{$inbound := index $.Site.Data.linkIndex.index.backlinks $curPage}}
{{if $inbound}}
2021-07-18 13:35:42 +00:00
{{- range $inbound -}}
<li>
<a href="{{index . "source"}}">{{index . "source"}}</a>
</li>
{{- end -}}
{{else}}
<li>
No backlinks found
</li>
{{end}}
</ul>