Convert the linked-from list into a tagged list.
This commit is contained in:
parent
86e36d5b79
commit
88029a27d0
@ -626,12 +626,12 @@ def render_connections(headline_id, content, graph):
|
||||
if headline_id not in graph['backlinks']:
|
||||
return
|
||||
|
||||
content.append("<div class='connections'><span class='backlink-explanation'>These notes link here:</span><ul>")
|
||||
content.append("<ul><li class='connections'><span class='tag backlink-explanation'>Linked from</span><ul>")
|
||||
for backlink in sorted(graph['backlinks'][headline_id], key=lambda x: graph['nodes'][x]['title']):
|
||||
link = graph["nodes"][backlink]
|
||||
title = link["title"]
|
||||
content.append(f"<li><a class='internal backlink' href='./{backlink}.node.html'>{html.escape(title)}</a></li>")
|
||||
content.append("</ul></div>")
|
||||
content.append("</ul></ul></div>")
|
||||
|
||||
def render(headline, doc, graph, headlineLevel):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user