change order for articles

This commit is contained in:
davidovski 2023-07-27 02:36:25 +02:00
parent 6f0c6a1f75
commit febd6983ee
1 changed files with 3 additions and 1 deletions

View File

@ -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#\# }