Some small fixes to backlink rendering.

This commit is contained in:
Flancian 2020-11-16 19:56:57 +01:00
parent b9ed7296f6
commit 9ac4c34ba2
2 changed files with 4 additions and 8 deletions

View file

@ -32,9 +32,9 @@ Go back to <a href="/nodes">/nodes</a>?
{% endfor %} {% endfor %}
<div class="backlinks"> <div class="backlinks">
<span class="backlinks-header">Backlinks (subnodes linking to {{wikilink}})</span><br /> <span class="backlinks-header">Backlinks (subnodes linking to <a href="/node/{{wikilink}}">[[{{wikilink}}]]</a>)</span><br />
{% for subnode in backlinks %} {% for subnode in backlinks %}
{{ subnode.uri }}: <a href="{{subnode.url}}">{{subnode.wikilink}}</a><br /> <a href="{{subnode.url}}">{{subnode.wikilink}}</a> by <a href="/@{{subnode.user}}">@{{subnode.user}}</a><br />
{% endfor %} {% endfor %}
</div> </div>

View file

@ -23,15 +23,11 @@ Go back to <a href="/nodes">/nodes</a>, <a href="/subnodes">/nodes</a>?
{% endif %} {% endif %}
<div class="subnode"> <div class="subnode">
<span class="subnode-header">Subnode by <a href="/@{{subnode.user}}">@{{subnode.user}}</a> in node <a href="/node/{{subnode.wikilink}}">{{subnode.wikilink}}</a></span><br /> <span class="subnode-header">Subnode by <a href="/@{{subnode.user}}">@{{subnode.user}}</a> in node <a href="/node/{{subnode.wikilink}}">[[{{subnode.wikilink}}]]</a></span><br />
{{ subnode.content|markdown|linkify|safe }} {{ subnode.content|markdown|linkify|safe }}
</div> </div>
<div class="backlinks"> <div class="backlinks">
<span class="backlinks-header">Backlinks (subnodes linking to {{subnode.wikilink}})</span> <span class="backlinks-header">To see backlinks, go up to node <a href="/node/{{subnode.wikilink}}">[[{{subnode.wikilink}}]]</a>.</span>
{% for subnode in backlinks %}
{{ subnode.uri }}: <a href="{{subnode.url}}">{{subnode.wikilink}}</a><br />
{% endfor %}
</div>
{% endblock %} {% endblock %}