blog/build.sh

25 lines
582 B
Bash
Raw Normal View History

2023-03-16 00:08:25 -04:00
#!/usr/bin/bash
# copy assets
cp -r assets/ dist/
make_index() {
cp templates/index.tmpl.html build/index.html
sed -i 's/<title>/&Home/' build/index.html
2023-03-16 00:20:02 -04:00
pandoc pages/index.md > build/index-content.html
sed -i '/<main>/r build/index-content.html' build/index.html
2023-03-16 00:08:25 -04:00
cp build/index.html dist/
}
make_index
2023-03-17 19:08:03 -04:00
make_stuff() {
cp templates/index.tmpl.html build/stuff.html
sed -i 's/<title>/&Stuff/' build/stuff.html
pandoc pages/stuff.md > build/stuff-content.html
sed -i '/<main>/r build/stuff-content.html' build/stuff.html
cp build/stuff.html dist/
}
make_stuff