14 lines
255 B
Bash
14 lines
255 B
Bash
|
#!/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
|
||
|
sed -i '/<main>/r pages/index.md' build/index.html
|
||
|
cp build/index.html dist/
|
||
|
}
|
||
|
|
||
|
make_index
|