diff --git a/ssg6 b/ssg6 index 60f3f5a..1d27e36 100755 --- a/ssg6 +++ b/ssg6 @@ -256,20 +256,22 @@ render_article_list() { for i in $urls; do if echo $i | grep '^posts/' > /dev/null; then DATE=$(cat $dst/$i | grep '' | cut -d ' ' -f 3-3) - url="$date;$i" - sorted_urls="$(echo "$sorted_urls $i" | sort -r)" + url="$DATE;$i" + sorted_urls="$(echo -n "$sorted_urls\n$url" | sort -r)" fi done items="" - + for i in $sorted_urls; do - CLEAN_DATE=$(cat $dst/$i | grep '' | cut -d ' ' -f 3-3) - TITLE=$(cat $dst/$i | grep '' | awk '{for(i=3;i' | cut -d ' ' -f 3-3) + TITLE=$(cat $dst/$url | grep '' | awk '{for(i=3;i