diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-03-12 19:50:03 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-03-12 19:50:03 +0000 |
commit | c7fea1d2c78e77654f098f9ac7409f97ad171f44 (patch) | |
tree | c637935478b24bd3d89490148eb8528ec1e39d2a /templates | |
parent | ae079307387d1e97a7ae425dc9c110cafd873116 (diff) | |
download | boymoder.blog-c7fea1d2c78e77654f098f9ac7409f97ad171f44.tar.gz boymoder.blog-c7fea1d2c78e77654f098f9ac7409f97ad171f44.zip |
switched to mistune (over misaka) for markdown parsing, added table of contents
Diffstat (limited to 'templates')
-rw-r--r-- | templates/template.jinja | 6 |
1 files changed, 6 insertions, 0 deletions
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> |