css, templates
This commit is contained in:
40
templates/post.html
Normal file
40
templates/post.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<LINK href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
|
||||
<h1>{{post.title}}</h1>
|
||||
{{post.date}}
|
||||
{{ post.html|safe }}
|
||||
|
||||
<br>
|
||||
|
||||
Unterordner:
|
||||
<ul>
|
||||
{% for d in spi %}
|
||||
<li>
|
||||
<a href="{{url_for('post',name=d['path'])}}">{{d.title}} {{'/'.join(d.path.split('/')[-2:-1])}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<hr>
|
||||
Info:
|
||||
<ul>
|
||||
{% for d in sp %}
|
||||
<li>
|
||||
<a href="{{url_for('post',name=d.path)}}">{{d.title}} </a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Files:
|
||||
<ul>
|
||||
{% for d in ld %}
|
||||
<li>
|
||||
<a href="{{d}}">{{d}} </a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
6
templates/posts.html
Normal file
6
templates/posts.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% for post in posts %}
|
||||
<a href="{{ url_for('post', name=post.path.replace('posts/', '')) }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
<small>{{ post.date }}</small>
|
||||
{% endfor %}
|
||||
19
templates/u1.html
Normal file
19
templates/u1.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{post.title}}
|
||||
{{ post.html|safe }}
|
||||
|
||||
<br>
|
||||
<ul>
|
||||
{% for d in sp %}
|
||||
<li>
|
||||
<a href="{{url_for('post',name=d.path)}}">{{d.title}} </a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
{% for d in ld %}
|
||||
<li>
|
||||
<a href="{{d}}">{{d}} </a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user