stillgreenmossdotnet/build.sh
maren 8b35dcd2a3 new blog post
also includes some css updates to handle blog post images
some build.sh updates to better handle images
some small edits in other places
2023-12-27 23:37:31 -05:00

22 lines
482 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 ./site/.
# build feed
cp ./feed/feed.atom ./site/feed.atom
cp -a ./posts/. ./site/blog/.