diff options
author | davidovski <david@davidovski.xyz> | 2023-07-27 02:36:25 +0200 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-07-27 02:36:25 +0200 |
commit | febd6983eef6f2e33140523552685840227240d5 (patch) | |
tree | c6fc3e33926a2cb1ae78123613f3e76cb3ba6bd9 | |
parent | 6f0c6a1f75a0024603ea0a792328359eb04acc62 (diff) |
change order for articles
-rwxr-xr-x | site/index.html | 4 |
1 files changed, 3 insertions, 1 deletions
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#\# } |