summaryrefslogtreecommitdiff
path: root/src/templates/admin/blog.html
diff options
context:
space:
mode:
authorEmma Terzioglu <emreterzioglu49@gmail.com>2026-03-13 13:49:15 -0700
committerEmma Terzioglu <emreterzioglu49@gmail.com>2026-03-13 13:49:15 -0700
commit7a33856a527aebbd8d2a624c6d5937c25c9a1d90 (patch)
tree855c642394e7ba1de40b8bb8737be12bec0aedaf /src/templates/admin/blog.html
initial commit
new website repo yay!!!
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 %}