Some further fixes to node/subnode rendering.

This commit is contained in:
Flancian 2020-11-16 20:13:04 +01:00
parent 9ac4c34ba2
commit f83d748561
3 changed files with 15 additions and 4 deletions

View file

@ -41,6 +41,15 @@ h2 { font-size: 1.2em; }
content: "]]" content: "]]"
} }
.node {
}
.node-header {
text-align: left;
margin-bottom: 1em;
margin-left: 0.2em;
}
.subnode { .subnode {
font-family: sans-serif; font-family: sans-serif;
background: #1f1f1f; background: #1f1f1f;
@ -55,7 +64,6 @@ h2 { font-size: 1.2em; }
.subnode-header { .subnode-header {
font-style: italic; font-style: italic;
text-align: center;
margin-bottom: 1em; margin-bottom: 1em;
} }
@ -72,7 +80,6 @@ h2 { font-size: 1.2em; }
.backlinks-header { .backlinks-header {
font-style: italic; font-style: italic;
text-align: center;
margin-bottom: 1em; margin-bottom: 1em;
} }

View file

@ -24,12 +24,16 @@ If you <a href="https://flancia.org/go/agora">contributed a subnode</a> named '{
Go back to <a href="/nodes">/nodes</a>? Go back to <a href="/nodes">/nodes</a>?
{% endif %} {% endif %}
<div class="node">
<span class="node-header"><strong>Node</strong> <a href="/node/{{wikilink}}">[[{{wikilink}}]]</a></span>
{% for subnode in subnodes %} {% for subnode in subnodes %}
<div class="subnode"> <div class="subnode">
<span class="subnode-header">Subnode <a href="{{subnode.url}}">{{subnode.uri}}</a> by <a href="/@{{subnode.user}}">@{{subnode.user}}</a></span> <span class="subnode-header"><strong>Subnode</strong> <a href="{{subnode.url}}">{{subnode.uri}}</a> by <a href="/@{{subnode.user}}">@{{subnode.user}}</a></span>
{{ subnode.content|markdown|linkify|safe }} {{ subnode.content|markdown|linkify|safe }}
</div> </div>
{% endfor %} {% endfor %}
</div>
<div class="backlinks"> <div class="backlinks">
<span class="backlinks-header">Backlinks (subnodes linking to <a href="/node/{{wikilink}}">[[{{wikilink}}]]</a>)</span><br /> <span class="backlinks-header">Backlinks (subnodes linking to <a href="/node/{{wikilink}}">[[{{wikilink}}]]</a>)</span><br />

View file

@ -23,7 +23,7 @@ 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"><strong>Subnode</strong> <a href="{{subnode.url}}">{{subnode.uri}}</a> by <a href="/@{{subnode.user}}">@{{subnode.user}}</a> in <a href="/node/{{subnode.wikilink}}">[[{{subnode.wikilink}}]]</a></span>
{{ subnode.content|markdown|linkify|safe }} {{ subnode.content|markdown|linkify|safe }}
</div> </div>