#!/bin/bash -e
mkdir -p output/{index,about,tags,tag,archive,posts,static}
touch ./generator/generate.scm
GEN='guile ./generator/generate.scm'
cp -r static/* output/static
${GEN} index posts/$(ls -t posts/ | head -n 1)
${GEN} about
${GEN} tags
${GEN} archive
${GEN} post posts/*
${GEN} feed