From 9e19c74d94c2a72c6e76d2ecfdeb18c7410db998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven!=20Ragnar=C3=B6k?= Date: Mon, 11 Nov 2024 16:30:53 -0800 Subject: [PATCH] Parsing the date is required to sort this as a date. --- content/questions/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/questions/index.html b/content/questions/index.html index 90d9c37b4c..9ed6b26e47 100644 --- a/content/questions/index.html +++ b/content/questions/index.html @@ -8,7 +8,7 @@

<%= @config[:site_title] %> Answers Archive

<% questions = @items.find_all "/question/*.md" %>

All questions

- <% questions.sort_by{|q| q[:creation_date]}.each do |question| %> + <% questions.sort_by{|q| DateTime.parse(q[:creation_date])}.reverse.each do |question| %>
<%= h question[:title] %> | <%= question[:answers].size %> answers |