summary refs log tree commit diff
path: root/templates/index.html
diff options
context:
space:
mode:
authorMatt Arnold2025-04-06 21:06:53 -0400
committerMatt Arnold2025-04-06 21:06:53 -0400
commitc26d3c09abea8aac5cdad752e23f19e5c8e98cd9 (patch)
tree2d4a2ad21ab4f5dfb33420a77f0b28b2b3b23c47 /templates/index.html
have gpt start us off
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..9a05e7a
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,11 @@
+{% extends 'base.html' %}
+
+{% block content %}
+    <h2>Posts</h2>
+    <ul>
+        {% for post in posts %}
+            <li><a href="{{ url_for('post', post_id=post.id) }}">{{ post.title }}</a> - {{ post.created_at.strftime('%Y-%m-%d') }}</li>
+        {% endfor %}
+    </ul>
+    <a href="{{ url_for('create') }}">Create a new post</a>
+{% endblock %}
\ No newline at end of file