This commit is contained in:
Andreas Stephanides
2017-04-17 00:26:03 +02:00
parent 0bf19b2b36
commit 81ea991c5b
3 changed files with 119 additions and 27 deletions

44
templates/page.html Normal file
View File

@@ -0,0 +1,44 @@
{% extends "layout.html" %}
{% block content %}
<h1>{{post.title}}</h1>
{{post.date}}
{% if spi|length > 0 %}
{{ post.html|safe }}
<hr/>
<b id="up_head"> Unterseiten: </b>
<ul class="nav flex-column flex-sm-row " labeledby="up_head">
{% for d in spi %}
<li class="nav-item">
<a href="{{url_for('post',name=d['path'])}}" class="nav-link">
<h6> {{d.title}} <small class="text-muted">{{'/'.join(d.path.split('/')[-2:-1])}} </small>
</h6>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% if sp|length > 0 %}
<ul class="nav flex-column flex-sm-row" labeledby="inf_head">
{% for d in sp %}
<li class="nav-item">
<a href="{{url_for('post',name=d['path'])}}" class="nav-link text-info">
<h6> {{d.title}} <small class="text-muted">{{d.path.split('/')[-1]}} </small>
</h6>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
<hr/>
<b id="inf_head">Files: </b>
<ul>
{% for d in ld %}
<li>
<a href="/{{pth}}/{{d}}">{{d}} </a>
</li>
{% endfor %}
</ul>
{% endblock %}