From febd6983eef6f2e33140523552685840227240d5 Mon Sep 17 00:00:00 2001
From: davidovski <david@davidovski.xyz>
Date: Thu, 27 Jul 2023 02:36:25 +0200
Subject: change order for articles

---
 site/index.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/site/index.html b/site/index.html
index 1be1d83..39c4540 100755
--- a/site/index.html
+++ b/site/index.html
@@ -1,5 +1,7 @@
 #!./page.sh
 
+entries="$(for f in entries/*.html; do echo $(git log --pretty=format:'%ct' --follow $f | tail -n 1) $f; done | sort -nr | cut -f2- -d' ')"
+
 cat << EOF
 <div class="grid">
 	<div class="about">
@@ -23,7 +25,7 @@ cat << EOF
     <ul>
 EOF
 # list all the files in the directory
-for file in $(ls -t entries/*.html); do
+for file in $entries; do
     title="$(grep '^# ' $file)"
     title=${title#\# }
 
-- 
cgit v1.2.1