aboutsummaryrefslogtreecommitdiffstats
path: root/templates/thought.jinja
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-03-12 21:10:13 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-03-12 21:10:13 +0000
commit799284d7065f8db02e7c8d935def80b7a2dd6f9f (patch)
treee8428bc96a336834451ab4db0b82d9f47398fcf5 /templates/thought.jinja
parentc7fea1d2c78e77654f098f9ac7409f97ad171f44 (diff)
downloadeda.gay-799284d7065f8db02e7c8d935def80b7a2dd6f9f.tar.gz
eda.gay-799284d7065f8db02e7c8d935def80b7a2dd6f9f.zip
Added contents, made a new template for blog posts
Diffstat (limited to 'templates/thought.jinja')
-rw-r--r--templates/thought.jinja29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/thought.jinja b/templates/thought.jinja
new file mode 100644
index 0000000..df6fe7a
--- /dev/null
+++ b/templates/thought.jinja
@@ -0,0 +1,29 @@
+{% extends "template.jinja" %}
+{% 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