This commit is contained in:
Flancian 2021-01-09 18:51:02 +01:00
parent b7ad5c9f18
commit f82efbbaa2
2 changed files with 2 additions and 1 deletions

View file

@ -171,7 +171,7 @@ class Node:
nodes.append(n)
return nodes
@cachetools.func.ttl_cache(maxsize=10, ttl=60)
def back_links(self):
return sorted([x.wikilink for x in nodes_by_outlink(self.wikilink)])

View file

@ -54,6 +54,7 @@ Try listing all <a href="/nodes">nodes</a> or perhaps <a href="/search">search</
<span class="subnode-id"><strong>Subnode</strong> <a href="/@{{subnode.user}}/{{node.uri}}">[[{{node.uri}}@{{subnode.user}}]]</a></span>
<span class="subnode-links">by <a href="/@{{subnode.user}}">@{{subnode.user}}</a></span>
</div>
<br />
{{ subnode.render()|linkify|safe }}
</div>
{% endfor %}