aboutsummaryrefslogtreecommitdiffstats
path: root/edaweb/templates/thoughts.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
commit0e8ada1eff8799437c9be1bc2af10d6198fa8cad (patch)
tree65d40b0c83fc2477306d561d8b98741e8e6585c6 /edaweb/templates/thoughts.html.j2
parent9e077a790919e2980111262fbde500a5cee828f8 (diff)
downloadboymoder.blog-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.tar.gz
boymoder.blog-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.zip
Added inline HTML into blogposts, refactored a bit
Diffstat (limited to 'edaweb/templates/thoughts.html.j2')
-rw-r--r--edaweb/templates/thoughts.html.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/edaweb/templates/thoughts.html.j2 b/edaweb/templates/thoughts.html.j2
new file mode 100644
index 0000000..bf06f57
--- /dev/null
+++ b/edaweb/templates/thoughts.html.j2
@@ -0,0 +1,12 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ {% for category_name, thoughts in tree.items() %}
+ <h3 id="{{category_name.replace(' ', '_')}}">{{category_name}}</h3>
+ <dl>
+ {% for id_, title, dt in thoughts %}
+ <dt><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></dt>
+ <dd>{{dt}}</dd>
+ {% endfor %}
+ </dl>
+ {% endfor %}
+{% endblock %} \ No newline at end of file