From e2d1d421e422790b956e57e40522630221eae02c Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Tue, 11 Mar 2025 03:04:37 +0100 Subject: got website working; final touches are needed --- templates/about.html.j2 | 4 ---- templates/index.html.j2 | 2 +- templates/template.html.j2 | 10 +++++----- templates/thought.html.j2 | 15 ++++++++++++++- templates/thoughts.html.j2 | 12 +++++++++--- 5 files changed, 29 insertions(+), 14 deletions(-) delete mode 100644 templates/about.html.j2 (limited to 'templates') diff --git a/templates/about.html.j2 b/templates/about.html.j2 deleted file mode 100644 index 8ebc3d7..0000000 --- a/templates/about.html.j2 +++ /dev/null @@ -1,4 +0,0 @@ -{% extends "template.html.j2" %} -{% block content %} - {{ content|safe }} -{% endblock %} \ No newline at end of file diff --git a/templates/index.html.j2 b/templates/index.html.j2 index fa4873e..bc21bcf 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -1,4 +1,4 @@ {% extends "template.html.j2" %} {% block content %} - {{ content|safe }} + {{markdown|safe}} {% endblock %} diff --git a/templates/template.html.j2 b/templates/template.html.j2 index 711cbc7..183ef55 100644 --- a/templates/template.html.j2 +++ b/templates/template.html.j2 @@ -1,9 +1,9 @@ - - - + + + cafebabe.gay :: {{ title }} @@ -37,12 +37,12 @@

Valid CSS!

- Powered By Debian + Powered By Debian diff --git a/templates/thought.html.j2 b/templates/thought.html.j2 index fa4873e..a6953e2 100644 --- a/templates/thought.html.j2 +++ b/templates/thought.html.j2 @@ -1,4 +1,17 @@ {% extends "template.html.j2" %} {% block content %} - {{ content|safe }} + + {{md_html|safe}} {% endblock %} diff --git a/templates/thoughts.html.j2 b/templates/thoughts.html.j2 index 69734fa..fa950e7 100644 --- a/templates/thoughts.html.j2 +++ b/templates/thoughts.html.j2 @@ -1,6 +1,12 @@ {% extends "template.html.j2" %} {% block content %} -
- {{ content|safe }} -
+ {% for category_name, thoughts in tree.items() %} +

{{category_name}}

+
+ {% for id_, title, datetime in thoughts %} +
{{title}}
+
{{datetime}}
+ {% endfor %} +
+ {% endfor %} {% endblock %} -- cgit v1.2.3