#! /usr/bin/env bash
build_index() {
echo '
'
echo ''
for i in $(find generated/ -name '*.html'); do
if [ "$i" == "generated/writing.html" ]; then
continue
fi
real_path=${i#generated/}
filename=${real_path##*/}
title=${filename%.html}
echo "- $title
"
done
echo '
'
echo ''
}
build_index > generated/writing.html