blog/build.sh

15 lines
316 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