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: "]]"
}
.node {
}
.node-header {
text-align: left;
margin-bottom: 1em;
margin-left: 0.2em;
}
.subnode {
font-family: sans-serif;
background: #1f1f1f;
@ -55,7 +64,6 @@ h2 { font-size: 1.2em; }
.subnode-header {
font-style: italic;
text-align: center;
margin-bottom: 1em;
}
@ -72,7 +80,6 @@ h2 { font-size: 1.2em; }
.backlinks-header {
font-style: italic;
text-align: center;
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>?
{% endif %}
<div class="node">
<span class="node-header"><strong>Node</strong> <a href="/node/{{wikilink}}">[[{{wikilink}}]]</a></span>
{% for subnode in subnodes %}
<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 }}
</div>
{% endfor %}
</div>
<div class="backlinks">
<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 %}
<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 }}
</div>