init/startup: generate blog posts in order
This commit is contained in:
parent
7e0d6fb6ee
commit
a16e7e489d
|
@ -7,7 +7,7 @@ cd /app/src/blog
|
||||||
IFS='
|
IFS='
|
||||||
'
|
'
|
||||||
|
|
||||||
for file in *
|
for file in $(ls -t)
|
||||||
do
|
do
|
||||||
title=$(head -n1 $file)
|
title=$(head -n1 $file)
|
||||||
line=$(head -n4 $file | tail -n1)
|
line=$(head -n4 $file | tail -n1)
|
||||||
|
|
Loading…
Reference in New Issue