change order for articles
This commit is contained in:
parent
6f0c6a1f75
commit
febd6983ee
|
@ -1,5 +1,7 @@
|
||||||
#!./page.sh
|
#!./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
|
cat << EOF
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<div class="about">
|
<div class="about">
|
||||||
|
@ -23,7 +25,7 @@ cat << EOF
|
||||||
<ul>
|
<ul>
|
||||||
EOF
|
EOF
|
||||||
# list all the files in the directory
|
# list all the files in the directory
|
||||||
for file in $(ls -t entries/*.html); do
|
for file in $entries; do
|
||||||
title="$(grep '^# ' $file)"
|
title="$(grep '^# ' $file)"
|
||||||
title=${title#\# }
|
title=${title#\# }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue