summaryrefslogtreecommitdiff
path: root/src/templates/admin/blog.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/admin/blog.html')
-rw-r--r--src/templates/admin/blog.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/templates/admin/blog.html b/src/templates/admin/blog.html
new file mode 100644
index 0000000..8cb1433
--- /dev/null
+++ b/src/templates/admin/blog.html
@@ -0,0 +1,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 %}