diff --git a/site/index.html b/site/index.html
index 080a484..cf0fafa 100755
--- a/site/index.html
+++ b/site/index.html
@@ -23,7 +23,7 @@ cat << EOF
EOF
# list all the files in the directory
-for file in entries/*.html; do
+for file in $(ls -t entries/*.html); do
title="$(grep '^# ' $file)"
title=${title#\# }
@@ -34,7 +34,7 @@ for file in entries/*.html; do
%s
-" "${file%.*}.html" "$(stat -c %z "$file")" "$title"
+" "${file%.*}.html" "$(git log --pretty=format:'%cd' "$file" | tail -n 1)" "$title"
done
cat << EOF
diff --git a/site/rss.xml b/site/rss.xml
index d2ec426..c8d4d11 100755
--- a/site/rss.xml
+++ b/site/rss.xml
@@ -17,7 +17,7 @@ for entry in entries/*.html; do
printf "- \n"
printf "%s\n" "${title}"
printf "%s\n" "http://davidovski.xyz/$entry"
- printf "%s\n" "$(stat -c %z "$entry")"
+ printf "%s\n" "$(git log --pretty=format:'%cd' "$entry" | tail -n 1 )"
printf "