aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-26 19:15:51 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-26 19:15:51 -0800
commitb02618023387326b049856e1548f58e47e77e8ed (patch)
tree2cf9644b3315adee0ea355ae9a5ce1a2ef9728f1
parentremove unused script (diff)
downloadfcuny.net-b02618023387326b049856e1548f58e47e77e8ed.tar.gz
sort pages by date
-rw-r--r--templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 0425f26..a488970 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,7 +3,7 @@ section.content | safe }} {% endif %}
<hr />
-{%- for post in section.pages -%}
+{%- for post in section.pages | sort(attribute="date", reverse=false) -%}
<section>
<ul class="post-list">
<li>