"
}
# meta
echo "
n
" > ./docs/index.html
# script
echo ' ' >> docs/index.html
# body
echo "
n
" >> docs/index.html
# posts
posts=$(ls -t ./posts);
for f in $posts; do
file="./posts/"$f
echo "generating post $file"
id="${file##*/}" # ill name my posts just fine
html=$(lowdown "$file")
post_date=$(date -r "$file" "+%d/%m %Y")
post_div=$(post_wrapper "$id" "$html" "$post_date")
echo -ne "$post_div" >> docs/index.html
done
echo "