diff --git a/src/index.ps b/src/index.ps
index bd73480..cd432ec 100644
--- a/src/index.ps
+++ b/src/index.ps
@@ -14,33 +14,37 @@ cat <<'EOF'
Posts
-
+
EOF
# print list
ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep -v '.draft.' | while read line
do
+ echo ""
DATE="$(echo "$line" | cut -d"_" -f1 )"
if [ $(echo "${line##*.}") == "pm" ]
then
- TITLE="$DATE - $(head -1 "$line" | sed 's/^# //g')"
+ TITLE="$(head -1 "$line" | sed 's/^# //g')"
else
- TITLE="$DATE - $(echo "${line%%.*}" | tr '_' ' ')"
+ TITLE="$(echo "${line%%.*}" | tr '_' ' ')"
fi
URI="posts/${line%.*}.html"
cat <
+
+ $DATE
+ |
+
$TITLE
-
+ |
EOF
-
+ echo "
"
done
cat <
+
EOF