aboutsummaryrefslogtreecommitdiff
path: root/www/index.sh
diff options
context:
space:
mode:
Diffstat (limited to 'www/index.sh')
-rwxr-xr-xwww/index.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/index.sh b/www/index.sh
index 9b6bd7f0..4d7d2292 100755
--- a/www/index.sh
+++ b/www/index.sh
@@ -37,12 +37,13 @@ meta() {
# generate the index file
-FILES=$(ls -r1 news/*.md | sed -e s-.*index.md-- -e s-.*presentation.md--)
+FILES=$(ls -1 -t news/*.md | sed -e s-.*index.md-- -e s-.*presentation.md--)
cat news-list.md > news/index.md
for f in $FILES
do
+ touch -d "$(sed -n 3p $f | sed -e 's/^..//g')" $f
meta >> news/index.md
done