From c7fea1d2c78e77654f098f9ac7409f97ad171f44 Mon Sep 17 00:00:00 2001
From: jwansek <eddie.atten.ea29@gmail.com>
Date: Sat, 12 Mar 2022 19:50:03 +0000
Subject: switched to mistune (over misaka) for markdown parsing, added table
 of contents

---
 templates/template.jinja | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'templates')

diff --git a/templates/template.jinja b/templates/template.jinja
index 77bf38c..f28163e 100644
--- a/templates/template.jinja
+++ b/templates/template.jinja
@@ -42,6 +42,12 @@
             {% if thought %}
                 <aside>
                     <h4>{{dt}}</h4>
+                    <h5>contents:</h5>
+                    <ul id="header_linkers">
+                        {% for text, depth, link in headers %}
+                            <li>{{ '#'*depth }} <a href="{{ link }}">{{ text }}</a></li>
+                        {% endfor %}
+                    </ul>
                     <h5>this category:</h5>
                     <ul>
                         <li><b><a href="{{'/thoughts#'+category.replace(' ', '_')}}">{{category}}</a></b></li>
-- 
cgit v1.2.3