stillgreenmossdotnet/build.sh
maren 33ac5dc9e7 improve header and footer, add favicon
w3c html checker is very happy now
2024-05-01 19:18:08 -04:00

22 lines
494 B
Bash
Executable file

#!/bin/sh -e
# prep for build
rm -rf ./site
mkdir -p ./site
mkdir -p ./site/links
mkdir -p ./site/blog
# build top-level pages
cat head.html home.html foot.html > ./site/index.html
cat head.html links.html foot.html > ./site/links/index.html
cat head.html blog.html foot.html > ./site/blog/index.html
# copy one-offs
cp style.css ./site/style.css
cp robots.txt ./site/robots.txt
cp *.jpg favicon.ico ./site/.
# build feed
cp ./feed/feed.atom ./site/feed.atom
cp -a ./posts/. ./site/blog/.