summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2023-01-28 12:51:05 +0100
committerWriterV2 <primary-v2@protonmail.com>2023-01-28 12:51:05 +0100
commitd3e2c3f4446e35f6a6d930e996488e94760f469c (patch)
tree620ed4995bbaab74a18a01aafa74ad1b3b73a113 /templates
parent46dbedbd451217cd22d10e9d8cd208d4706771b8 (diff)
Replace id attribute with last_update to sort stories
Diffstat (limited to 'templates')
-rw-r--r--templates/stories.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/stories.html b/templates/stories.html
index 9097ba0..11a2fa2 100644
--- a/templates/stories.html
+++ b/templates/stories.html
@@ -13,7 +13,7 @@
</form>
</div>
<div class="works">
- {% for work in works %}
+ {% for work in works | sort(attribute="last_update") | reverse %}
<a href="{{work.path_to_document}}" class="work-card" download>
<div class="title-and-description">
<h3>{{work.title}}</h3>
@@ -22,6 +22,7 @@
<div class="info">
<span>{{work.number_of_pages}} Pages</span>
<span class="story-language">{{work.language}}</span>
+ <span>Last Update: {{work.last_update}}</span>
</div>
</a>
{% endfor %}