From 7a33856a527aebbd8d2a624c6d5937c25c9a1d90 Mon Sep 17 00:00:00 2001 From: Emma Terzioglu Date: Fri, 13 Mar 2026 13:49:15 -0700 Subject: initial commit new website repo yay!!! --- src/templates/blog/index.html | 27 +++++++++++++ src/templates/blog/post.html | 89 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 src/templates/blog/index.html create mode 100644 src/templates/blog/post.html (limited to 'src/templates/blog') diff --git a/src/templates/blog/index.html b/src/templates/blog/index.html new file mode 100644 index 0000000..a0aee24 --- /dev/null +++ b/src/templates/blog/index.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + +{% endblock %} + +{% block content %} + +

blog

+ +
+ {% for post in posts|sort(attribute="created_at", reverse=True) %} + +

{{ post.title }}

+

{{ post.description or "" }}

+

posted {{ format_ts(post.created_at) }}

+
+ {% endfor %} + + {% if posts|length == 0 %} +

huh, I guess nothing has been posted yet.

+ {% endif %} +
+ +{% endblock %} diff --git a/src/templates/blog/post.html b/src/templates/blog/post.html new file mode 100644 index 0000000..92c48a2 --- /dev/null +++ b/src/templates/blog/post.html @@ -0,0 +1,89 @@ +{% extends "base.html" %} + +{% block head %} +{{ super() }} + + + + +{% endblock %} + +{% block content %} + +
+
+

{{ post.title }}

+ + {% if post.description %} +

{{ post.description }}

+ {% endif %} + +

posted {{ post.created_at.strftime("%a %d %b %Y at %H:%M:%S") }}

+
+ + {{ post.text|safe }} +
+ +

comments

+ +
+ + + + + + + + + +
+ +
+ +{% endblock %} -- cgit v1.2.3