hugo-obsidian/partials/backlinks_partial.html

9 lines
289 B
HTML
Raw Normal View History

2021-07-17 21:38:27 +03:00
<ol class="backlinks">
{{$curPage := strings.TrimRight "/" .Page.RelPermalink }}
{{$inbound := index $.Site.Data.linkIndex.index.backlinks $curPage}}
{{- range $inbound -}}
<li>
<a href="{{index . "source"}}">{{index . "source"}}</a>
</li>
{{- end -}}
</ol>