diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/about.html.j2 | 4 | ||||
| -rw-r--r-- | templates/index.html.j2 | 2 | ||||
| -rw-r--r-- | templates/template.html.j2 | 10 | ||||
| -rw-r--r-- | templates/thought.html.j2 | 15 | ||||
| -rw-r--r-- | templates/thoughts.html.j2 | 12 |
5 files changed, 29 insertions, 14 deletions
diff --git a/templates/about.html.j2 b/templates/about.html.j2 deleted file mode 100644 index 8ebc3d7..0000000 --- a/templates/about.html.j2 +++ /dev/null @@ -1,4 +0,0 @@ -{% extends "template.html.j2" %} -{% block content %} - {{ content|safe }} -{% endblock %}
\ No newline at end of file diff --git a/templates/index.html.j2 b/templates/index.html.j2 index fa4873e..bc21bcf 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -1,4 +1,4 @@ {% extends "template.html.j2" %} {% block content %} - {{ content|safe }} + {{markdown|safe}} {% endblock %} diff --git a/templates/template.html.j2 b/templates/template.html.j2 index 711cbc7..183ef55 100644 --- a/templates/template.html.j2 +++ b/templates/template.html.j2 @@ -1,9 +1,9 @@ <!doctype html> <html lang="en"> <head> - <link rel='stylesheet' href="{{ prefix }}styles/style.css"> - <link rel="icon" type="image/png" href="{{ prefix }}images/favicon-32x32.png" sizes="32x32" /> - <link rel="icon" type="image/png" href="{{ prefix }}images/favicon-16x16.png" sizes="16x16" /> + <link rel='stylesheet' href="static/styles/style.css"> + <link rel="icon" type="image/png" href="static/images/favicon-32x32.png" sizes="32x32" /> + <link rel="icon" type="image/png" href="static/images/favicon-16x16.png" sizes="16x16" /> <title>cafebabe.gay :: {{ title }}</title> <meta content="{{ title }}" property="og:title" /> @@ -37,12 +37,12 @@ <p> <a href="https://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" - src="{{ prefix }}images/vcss-blue.gif" + src="static/images/vcss-blue.gif" alt="Valid CSS!" /> </a> </p> <a href="https://www.debian.org/"> - <img src="{{ prefix }}images/powerdebian.gif" alt="Powered By Debian"> + <img src="static/images/powerdebian.gif" alt="Powered By Debian"> </a> </div> </footer> diff --git a/templates/thought.html.j2 b/templates/thought.html.j2 index fa4873e..a6953e2 100644 --- a/templates/thought.html.j2 +++ b/templates/thought.html.j2 @@ -1,4 +1,17 @@ {% extends "template.html.j2" %} {% block content %} - {{ content|safe }} + <aside> + <h4>{{datetime}}</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> + </aside> + {{md_html|safe}} {% endblock %} diff --git a/templates/thoughts.html.j2 b/templates/thoughts.html.j2 index 69734fa..fa950e7 100644 --- a/templates/thoughts.html.j2 +++ b/templates/thoughts.html.j2 @@ -1,6 +1,12 @@ {% extends "template.html.j2" %} {% block content %} - <div id="thoughts_list"> - {{ content|safe }} - </div> + {% for category_name, thoughts in tree.items() %} + <h3 id="{{category_name.replace(' ', '_')}}">{{category_name}}</h3> + <dl> + {% for id_, title, datetime in thoughts %} + <dt><a href="{{'/thought?id=%i' % id_}}">{{title}}</a></dt> + <dd>{{datetime}}</dd> + {% endfor %} + </dl> + {% endfor %} {% endblock %} |
