blob: 8cb1433a433e093f6aeac17f1e0d6ad45ee7d358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{% extends "base.html" %}
{% block head %}
{{ super() }}
<style>
#main {
gap: 12px;
}
#create-new {
background-color: white;
color: black;
border: 1px white solid;
}
a.container {
color: inherit;
}
</style>
{% endblock %}
{% block content %}
<a id="create-new" href="/admin/blog/create">create new post</a>
{% for post in posts|sort(attribute="id", reverse=True) %}
<a class="container" href="/admin/blog/{{ post.id }}">
<p>id: {{ post.id }}</p>
<h2>{{ post.title }}</h2>
<p>{{ post.description or "" }}</p>
</a>
{% endfor %}
{% endblock %}
|