diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-03-12 21:10:13 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-03-12 21:10:13 +0000 |
commit | 799284d7065f8db02e7c8d935def80b7a2dd6f9f (patch) | |
tree | e8428bc96a336834451ab4db0b82d9f47398fcf5 /templates | |
parent | c7fea1d2c78e77654f098f9ac7409f97ad171f44 (diff) | |
download | eda.gay-799284d7065f8db02e7c8d935def80b7a2dd6f9f.tar.gz eda.gay-799284d7065f8db02e7c8d935def80b7a2dd6f9f.zip |
Added contents, made a new template for blog posts
Diffstat (limited to 'templates')
-rw-r--r-- | templates/template.jinja | 30 | ||||
-rw-r--r-- | templates/thought.jinja | 29 |
2 files changed, 30 insertions, 29 deletions
diff --git a/templates/template.jinja b/templates/template.jinja index f28163e..2fd86f9 100644 --- a/templates/template.jinja +++ b/templates/template.jinja @@ -38,41 +38,13 @@ </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>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> - </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> - {% endif %} <div id="content"> {% block content %} {% endblock %} </div> <footer> <p>this site is <a href="/thought?id=3">javascript free</a></p> - <a href="https://github.com/jwansek/edaweb">sauce code released under gplv3</a> + <a href="https://git.eda.gay/eda.gay/file/LICENSE.html">sauce code released under gplv3</a> <a href="https://github.com/jwansek/eda.gay">alternate git link</a> <p> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" 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 |