brew install pandoc
curl https://raw.githubusercontent.com/surprisetalk/worstpress/main/build.sh > build.sh
chmod a+x build.sh
echo 'hello world' > src/index.md
./build.sh 'https://example.com'
nano template.html
brew install http-server
http-server dist
brew install watch
watch -t -n 0.5 ./build.sh
Alternatively, rebuild only on file change:
npm install --global watch-cli
watch -p "*.html" -p "src/*" -c "./build.sh"