#!/usr/bin/bash
# copy assets
cp -r assets/ dist/
make_index() {
cp templates/index.tmpl.html build/index.html
sed -i 's/
/&Home/' build/index.html
pandoc pages/index.md > build/index-content.html
sed -i '//r build/index-content.html' build/index.html
cp build/index.html dist/
}
make_index