From 0e8ada1eff8799437c9be1bc2af10d6198fa8cad Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 29 Apr 2025 18:51:40 +0100 Subject: Added inline HTML into blogposts, refactored a bit --- edaweb/templates/questions.html.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 edaweb/templates/questions.html.j2 (limited to 'edaweb/templates/questions.html.j2') diff --git a/edaweb/templates/questions.html.j2 b/edaweb/templates/questions.html.j2 new file mode 100644 index 0000000..eb58380 --- /dev/null +++ b/edaweb/templates/questions.html.j2 @@ -0,0 +1,17 @@ +{% extends "template.html.j2" %} +{% block content %} +

ask a question!

+
+ {% for id_, link, dt, question, answer, host in qnas %} + {% if host == "curiouscat" %} +
{{ dt.isoformat() }} - {{ host }}
+ {% else %} +
{{ dt.isoformat() }} - {{ host }}
+ {% endif %} +
+

{{ question }}

+

{{ answer }}

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