diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2025-04-29 18:51:40 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2025-04-29 18:51:40 +0100 |
commit | 0e8ada1eff8799437c9be1bc2af10d6198fa8cad (patch) | |
tree | 65d40b0c83fc2477306d561d8b98741e8e6585c6 /edaweb/templates/thought.html.j2 | |
parent | 9e077a790919e2980111262fbde500a5cee828f8 (diff) | |
download | eda.gay-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.tar.gz eda.gay-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.zip |
Added inline HTML into blogposts, refactored a bit
Diffstat (limited to 'edaweb/templates/thought.html.j2')
-rw-r--r-- | edaweb/templates/thought.html.j2 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/edaweb/templates/thought.html.j2 b/edaweb/templates/thought.html.j2 new file mode 100644 index 0000000..2a5b519 --- /dev/null +++ b/edaweb/templates/thought.html.j2 @@ -0,0 +1,29 @@ +{% extends "template.html.j2" %} +{% block content %} + <aside> + <h4>{{ dt }}</h4> + {% if contents_html != "" %} + <h5>contents:</h5> + <div id="contents"> + {{ contents_html|safe }} + </div> + {% endif %} + <h5>this category:</h5> + <ul> + <li><b><a href="{{'/thoughts#'+category.replace(' ', '_')}}">{{category}}</a></b></li> + </ul> + <h5>related thoughts:</h5> + <ul> + {% for id_, title, dt, category in related %} + <li><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></li> + {% endfor %} + </ul> + <h5>other categories:</h5> + {% for category_name in othercategories %} + <ul> + <li><a href="{{'/thoughts#'+category_name.replace(' ', '_')}}">{{category_name}}</a></li> + </ul> + {% endfor %} + </aside> + {{ md_html|safe }} +{% endblock %}
\ No newline at end of file |