From 5d5abedb7504a93bda52fc326e39255629e2c648 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sat, 8 Oct 2022 23:39:56 +0100 Subject: Added rendering diary posts, fixed git section --- templates/diary.html.j2 | 24 ++++++++++++++++++++++++ templates/index.html.j2 | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 templates/diary.html.j2 (limited to 'templates') diff --git a/templates/diary.html.j2 b/templates/diary.html.j2 new file mode 100644 index 0000000..15cbe71 --- /dev/null +++ b/templates/diary.html.j2 @@ -0,0 +1,24 @@ +{% extends "template.html.j2" %} +{% block content %} +
+ {% for dt, entries in diary.items() %} +
{{ dt }}
+
+
    + {% for entry in entries %} + {% if entry["images"] != [] %} +
      + {% for img in entry["images"] %} +
    • + {% endfor %} +
    + {% endif %} +
  1. +

    {{ entry["text"] }}

    +
  2. + {% endfor %} +
+
+ {% endfor %} +
+{% endblock %} \ No newline at end of file diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 31c6207..72bff7b 100755 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -29,7 +29,7 @@

recent git commits:

-- cgit v1.2.3