simplified the template, moved the data processing to the python script

This commit is contained in:
manetta 2021-12-12 15:28:01 +01:00
parent 4d913f53fa
commit d63c0320f8

View File

@ -8,17 +8,12 @@
</head> </head>
<body> <body>
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
(Follow this log: <a href="./feed.rss">RSS</a>)
<div id="container"> <div id="container">
{% set sorted = [] %} {% for num in sorted_keys | reverse %}
{% for num in db %} <div id="{{ num }}" class="post">
{% set int_num = num | int %} <p class="key">{{ num }}</p>
<div style="display: none;">{{ sorted.append(int_num) }}</div> <p class="message">{{ db[num] | href_wrap }}</p>
{% endfor %}
{% for num in sorted | sort | reverse %}
<div class="post">
<p class="key">{{ num | string }}</p>
<p class="message">{{ db[num|string] | href_wrap }}</p>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>