aboutsummaryrefslogtreecommitdiffstats
path: root/templates/diary.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-10-08 23:39:56 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2022-10-08 23:39:56 +0100
commit5d5abedb7504a93bda52fc326e39255629e2c648 (patch)
tree34c126223f022ae9b6d04e62fc71e8cd61226a9d /templates/diary.html.j2
parent41ef9c15994a0db74cd8af1e7f43e8493c17460f (diff)
downloadeda.gay-5d5abedb7504a93bda52fc326e39255629e2c648.tar.gz
eda.gay-5d5abedb7504a93bda52fc326e39255629e2c648.zip
Added rendering diary posts, fixed git section
Diffstat (limited to 'templates/diary.html.j2')
-rw-r--r--templates/diary.html.j224
1 files changed, 24 insertions, 0 deletions
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 %}
+ <dl>
+ {% for dt, entries in diary.items() %}
+ <dt><a href="{{ entries[0]['link'] }}">{{ dt }}</a></dt>
+ <dd>
+ <ol id="diaryentry">
+ {% for entry in entries %}
+ {% if entry["images"] != [] %}
+ <ul>
+ {% for img in entry["images"] %}
+ <li><a href="{{ img }}" target='_blank'><img src="{{ img }}"></a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ <li>
+ <p>{{ entry["text"] }}</p>
+ </li>
+ {% endfor %}
+ </ol>
+ </dd>
+ {% endfor %}
+ </dl>
+{% endblock %} \ No newline at end of file