aboutsummaryrefslogtreecommitdiffstats
path: root/templates/thought.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-08-25 14:19:10 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-08-25 14:19:10 +0000
commit787a9421d1a61229b838dcbf17734c42172800f7 (patch)
tree014297140526a59232dbc5a23e5d89e374289a59 /templates/thought.html.j2
parenta86a5fa2f075ec455aa5101acff9c3fda290294d (diff)
downloadboymoder.blog-787a9421d1a61229b838dcbf17734c42172800f7.tar.gz
boymoder.blog-787a9421d1a61229b838dcbf17734c42172800f7.zip
Renamed template files, added active for torrents
Diffstat (limited to 'templates/thought.html.j2')
-rwxr-xr-xtemplates/thought.html.j229
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/thought.html.j2 b/templates/thought.html.j2
new file mode 100755
index 0000000..2a5b519
--- /dev/null
+++ b/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