From c26d3c09abea8aac5cdad752e23f19e5c8e98cd9 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Sun, 6 Apr 2025 21:06:53 -0400 Subject: have gpt start us off --- templates/base.html | 17 +++++++++++++++++ templates/index.html | 11 +++++++++++ templates/post.html | 8 ++++++++ 3 files changed, 36 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 templates/post.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..48b4d9c --- /dev/null +++ b/templates/base.html @@ -0,0 +1,17 @@ + + + + + + Blog + + + +
+

My Blog

+
+
+ {% block content %}{% endblock %} +
+ + \ No newline at end of file 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 %} +

Posts

+ + Create a new post +{% endblock %} \ No newline at end of file diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..5a28b2b --- /dev/null +++ b/templates/post.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} + +{% block content %} +

{{ post.title }}

+

{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}

+
{{ post.content }}
+ Back to posts +{% endblock %} \ No newline at end of file -- cgit 1.4.1-2-gfad0