diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2023-01-28 12:51:05 +0100 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2023-01-28 12:51:05 +0100 |
| commit | d3e2c3f4446e35f6a6d930e996488e94760f469c (patch) | |
| tree | 620ed4995bbaab74a18a01aafa74ad1b3b73a113 /templates/stories.html | |
| parent | 46dbedbd451217cd22d10e9d8cd208d4706771b8 (diff) | |
Replace id attribute with last_update to sort stories
Diffstat (limited to 'templates/stories.html')
| -rw-r--r-- | templates/stories.html | 3 |
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 %} |
