aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-02-17 20:56:57 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-02-17 20:56:57 +0000
commitb076881a8e899c67767eb6c9640f1da68f2d3454 (patch)
treedddf53dd12a6b919596556a381650137ae3e1fab /templates
parent58fecf855d151ef0459a43ab9af271a3a4922ad5 (diff)
downloadeda.gay-b076881a8e899c67767eb6c9640f1da68f2d3454.tar.gz
eda.gay-b076881a8e899c67767eb6c9640f1da68f2d3454.zip
finised parser, finished rendering posts, finished sercving images
Diffstat (limited to 'templates')
-rw-r--r--templates/template.html16
-rw-r--r--templates/thoughts.html12
2 files changed, 28 insertions, 0 deletions
diff --git a/templates/template.html b/templates/template.html
index 6b0d894..afbeefe 100644
--- a/templates/template.html
+++ b/templates/template.html
@@ -36,6 +36,22 @@
</a>
</div>
</header>
+ <!-- yes, this is stupid asf, using another template would be better (i cant get that to work) -->
+ {% if thought %}
+ <aside>
+ <h4>{{dt}}</h4>
+ <h5>this category:</h5>
+ <ul>
+ <li><b><a href={{'/thoughts#'+category.replace(' ', '_')}}>{{category}}</a></b></li>
+ </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>
+ {% endif %}
<article>
{% block content %}
{% endblock %}
diff --git a/templates/thoughts.html b/templates/thoughts.html
new file mode 100644
index 0000000..8717299
--- /dev/null
+++ b/templates/thoughts.html
@@ -0,0 +1,12 @@
+{% extends "template.html" %}
+{% block content %}
+ {% for category_name, thoughts in tree.items() %}
+ <h2 id={{category_name.replace(' ', '_')}}>{{category_name}}</h2>
+ <dl>
+ {% for id_, title, dt in thoughts %}
+ <dt><a href={{'/thought?id=%i' % id_}}>title</a></dt>
+ <dd>{{dt}}</dd>
+ {% endfor %}
+ </dl>
+ {% endfor %}
+{% endblock %} \ No newline at end of file