diff options
-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#\# } |