#!/bin/bash cd content find . -type d -exec mkdir -p ../public/{} \; find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -f markdown -t html5 --template ../templates/page.html --css index.css -o "../public/${0%.md}.html"' {} \;