mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
add simple backlinks template
This commit is contained in:
parent
7d80a9773b
commit
4c910a7bc2
9
partials/backlinks_partial.html
Normal file
9
partials/backlinks_partial.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<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>
|
Loading…
Reference in New Issue
Block a user