simplified the template, moved the data processing to the python script
This commit is contained in:
parent
4d913f53fa
commit
d63c0320f8
@ -8,17 +8,12 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ title }}</h1>
|
||||
(Follow this log: <a href="./feed.rss">RSS</a>)
|
||||
<div id="container">
|
||||
{% set sorted = [] %}
|
||||
{% for num in db %}
|
||||
{% set int_num = num | int %}
|
||||
<div style="display: none;">{{ sorted.append(int_num) }}</div>
|
||||
{% 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>
|
||||
{% for num in sorted_keys | reverse %}
|
||||
<div id="{{ num }}" class="post">
|
||||
<p class="key">{{ num }}</p>
|
||||
<p class="message">{{ db[num] | href_wrap }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user